public class TokenRequest extends Object
TokenEndpoint. The requestParameters map should contain the
 original, unmodified parameters from the original OAuth2 request.
 
 In the implicit flow, a token is requested through the AuthorizationEndpoint directly, and in that case the
 AuthorizationRequest is converted into a TokenRequest for processing through the token granting
 chain.| Modifier | Constructor and Description | 
|---|---|
| protected  | TokenRequest()Default constructor | 
|   | TokenRequest(Map<String,String> requestParameters,
            String clientId,
            Collection<String> scope,
            String grantType)Full constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| OAuth2Request | createOAuth2Request(ClientDetails client) | 
| boolean | equals(Object obj) | 
| String | getClientId() | 
| String | getGrantType() | 
| Map<String,String> | getRequestParameters()Warning: most clients should use the individual properties of this class,
 such as { getScope()or {getClientId(), rather than
 retrieving values from this map. | 
| Set<String> | getScope() | 
| int | hashCode() | 
| void | setClientId(String clientId) | 
| void | setGrantType(String grantType) | 
| void | setRequestParameters(Map<String,String> requestParameters)Set the Request Parameters on this authorization request, which represent the original request parameters and
 should never be changed during processing. | 
| void | setScope(Collection<String> scope)Set the scope value. | 
protected TokenRequest()
public TokenRequest(Map<String,String> requestParameters, String clientId, Collection<String> scope, String grantType)
requestParameters - clientId - scope - grantType - public String getGrantType()
public void setGrantType(String grantType)
public void setClientId(String clientId)
public void setScope(Collection<String> scope)
OAuth2Utils.parseParameterList(java.lang.String).scope - AuthorizationRequest.setScope(java.util.Collection<java.lang.String>)public void setRequestParameters(Map<String,String> requestParameters)
requestParameters - AuthorizationRequest.setRequestParameters(java.util.Map<java.lang.String, java.lang.String>)public OAuth2Request createOAuth2Request(ClientDetails client)
public String getClientId()
public Map<String,String> getRequestParameters()
getScope() or { getClientId(), rather than
 retrieving values from this map.Copyright © 2019. All rights reserved.