|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 字段摘要 | |
|---|---|
protected String |
clientId
Resolved client ID. |
protected Map<String,String> |
requestParameters
Map of parameters passed in to the Authorization Endpoint or Token Endpoint, preserved unchanged from the original request. |
protected Set<String> |
scope
Resolved scope set, initialized (by the OAuth2RequestFactory) with the scopes originally requested. |
| 构造方法摘要 | |
|---|---|
protected |
TokenRequest()
Default constructor |
|
TokenRequest(Map<String,String> requestParameters,
String clientId,
Collection<String> scope,
String grantType)
Full constructor. |
| 方法摘要 | |
|---|---|
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)
|
void |
setScope(Collection<String> scope)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected String clientId
protected Set<String> scope
protected Map<String,String> requestParameters
| 构造方法详细信息 |
|---|
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)
public void setRequestParameters(Map<String,String> requestParameters)
public 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()
Object 中的 hashCodepublic boolean equals(Object obj)
Object 中的 equals
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||