|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface OAuth2RequestFactory
Strategy for managing OAuth2 requests: AuthorizationRequest, TokenRequest, OAuth2Request.
| 方法摘要 | |
|---|---|
AuthorizationRequest |
createAuthorizationRequest(Map<String,String> authorizationParameters)
Create a new AuthorizationRequest extracting all the needed information from the incoming parameter map,
and initializing all individual fields on the AuthorizationRequest to reasonable values. |
OAuth2Request |
createOAuth2Request(AuthorizationRequest request)
Create a new OAuth2Request by extracting the needed information from the current
AuthorizationRequest object. |
OAuth2Request |
createOAuth2Request(ClientDetails client,
TokenRequest tokenRequest)
Create a new OAuth2Request by extracting the needed information from the current TokenRequest
object. |
TokenRequest |
createTokenRequest(AuthorizationRequest authorizationRequest,
String grantType)
Create a new TokenRequest from an AuthorizationRequest. |
TokenRequest |
createTokenRequest(Map<String,String> requestParameters)
Create a new TokenRequest by extracting the needed information from the incoming request parameter map. |
| 方法详细信息 |
|---|
AuthorizationRequest createAuthorizationRequest(Map<String,String> authorizationParameters)
AuthorizationRequest extracting all the needed information from the incoming parameter map,
and initializing all individual fields on the AuthorizationRequest to reasonable values. When a class
uses the factory to create an AuthorizationRequest, it should not need to access the parameter map
directly afterwards.
Typical implementations would initialize the individual fields on the AuthorizationRequest with the
values requested in the original parameter map. It may also load the client details from the client id provided
and validate the grant type and scopes, populating any fields in the request that are known only to the
authorization server.
authorizationParameters - the parameters in the request
OAuth2Request createOAuth2Request(AuthorizationRequest request)
OAuth2Request by extracting the needed information from the current
AuthorizationRequest object.
request - the request to be converted
OAuth2Request createOAuth2Request(ClientDetails client,
TokenRequest tokenRequest)
OAuth2Request by extracting the needed information from the current TokenRequest
object.
client - TODOtokenRequest - the request to be converted
TokenRequest createTokenRequest(Map<String,String> requestParameters)
TokenRequest by extracting the needed information from the incoming request parameter map.
requestParameters - the parameters in the request
TokenRequest createTokenRequest(AuthorizationRequest authorizationRequest,
String grantType)
TokenRequest from an AuthorizationRequest. Principally used by the
AuthorizationEndpoint during the implicit flow.
authorizationRequest - the incoming requestgrantType - the grant type for the token request
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||