|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.OAuth2Request
public class OAuth2Request
Represents a stored authorization or token request. Used as part of the OAuth2Authentication object to store a request's authentication information. Does not expose public setters so that clients can not mutate state if they respect the declared type of the request.
| 字段摘要 | |
|---|---|
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 |
OAuth2Request()
|
|
OAuth2Request(Map<String,String> requestParameters,
String clientId,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
boolean approved,
Set<String> scope,
Set<String> resourceIds,
String redirectUri,
Set<String> responseTypes,
Map<String,Serializable> extensionProperties)
|
protected |
OAuth2Request(OAuth2Request other)
|
protected |
OAuth2Request(String clientId)
|
| 方法摘要 | |
|---|---|
OAuth2Request |
createOAuth2Request(Map<String,String> parameters)
Update the request parameters and return a new object with the same properties except the parameters. |
boolean |
equals(Object obj)
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
|
String |
getClientId()
|
Map<String,Serializable> |
getExtensions()
|
String |
getRedirectUri()
|
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> |
getResourceIds()
|
Set<String> |
getResponseTypes()
|
Set<String> |
getScope()
|
int |
hashCode()
|
boolean |
isApproved()
|
protected void |
setClientId(String clientId)
|
protected void |
setRequestParameters(Map<String,String> requestParameters)
|
protected 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
| 构造方法详细信息 |
|---|
public OAuth2Request(Map<String,String> requestParameters,
String clientId,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
boolean approved,
Set<String> scope,
Set<String> resourceIds,
String redirectUri,
Set<String> responseTypes,
Map<String,Serializable> extensionProperties)
protected OAuth2Request(OAuth2Request other)
protected OAuth2Request(String clientId)
protected OAuth2Request()
| 方法详细信息 |
|---|
public String getRedirectUri()
public Set<String> getResponseTypes()
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
public boolean isApproved()
public Set<String> getResourceIds()
public Map<String,Serializable> getExtensions()
protected void setClientId(String clientId)
protected void setScope(Collection<String> scope)
protected void setRequestParameters(Map<String,String> requestParameters)
public OAuth2Request createOAuth2Request(Map<String,String> parameters)
parameters - new parameters replacing the existing ones
public int hashCode()
public boolean equals(Object obj)
public String getClientId()
public Set<String> getScope()
public Map<String,String> getRequestParameters()
getScope() or {
getClientId(), rather than retrieving values from this map.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||