|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.TokenRequest
public class TokenRequest
Represents an OAuth2 token request, made at the 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.
| Constructor Summary | |
|---|---|
protected |
TokenRequest()
Default constructor |
|
TokenRequest(Map<String,String> requestParameters,
String clientId,
Collection<String> scope,
String grantType)
Full constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TokenRequest()
public TokenRequest(Map<String,String> requestParameters,
String clientId,
Collection<String> scope,
String grantType)
requestParameters - clientId - scope - grantType - | Method Detail |
|---|
public String getGrantType()
public void setGrantType(String grantType)
public void setClientId(String clientId)
public void setScope(Collection<String> scope)
OAuth2Utils.parseParameterList.
scope - AuthorizationRequest.setScopepublic void setRequestParameters(Map<String,String> requestParameters)
requestParameters - AuthorizationRequest.setRequestParameterspublic OAuth2Request createOAuth2Request(ClientDetails client)
public String getClientId()
public Set<String> getScope()
public Map<String,String> getRequestParameters()
getScope() or { getClientId(), rather than
retrieving values from this map.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||