|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.AuthorizationRequest
public class AuthorizationRequest
Base class representing an OAuth2 Authorization Request. HTTP request parameters are stored in the parameters map, and any processing the server makes throughout the lifecycle of a request are stored on individual properties. The original request parameters will remain available through the parameters map. For convenience, constants are defined in order to get at those original values. However, the parameters map is unmodifiable so that processing cannot drop the original values.
| 字段摘要 | |
|---|---|
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. |
| 构造方法摘要 | |
|---|---|
AuthorizationRequest()
Default constructor. |
|
AuthorizationRequest(Map<String,String> authorizationParameters,
Map<String,String> approvalParameters,
String clientId,
Set<String> scope,
Set<String> resourceIds,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
boolean approved,
String state,
String redirectUri,
Set<String> responseTypes)
Full constructor. |
|
AuthorizationRequest(String clientId,
Collection<String> scopes)
Convenience constructor for unit tests, where client ID and scope are often the only needed fields. |
|
| 方法摘要 | |
|---|---|
OAuth2Request |
createOAuth2Request()
|
boolean |
equals(Object obj)
|
Map<String,String> |
getApprovalParameters()
|
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()
|
String |
getState()
|
int |
hashCode()
|
boolean |
isApproved()
|
void |
setApprovalParameters(Map<String,String> approvalParameters)
|
void |
setApproved(boolean approved)
|
void |
setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
|
void |
setClientId(String clientId)
|
void |
setExtensions(Map<String,Serializable> extensions)
|
void |
setRedirectUri(String redirectUri)
|
void |
setRequestParameters(Map<String,String> requestParameters)
|
void |
setResourceIds(Set<String> resourceIds)
|
void |
setResourceIdsAndAuthoritiesFromClientDetails(ClientDetails clientDetails)
Convenience method to set resourceIds and authorities on this request by inheriting from a ClientDetails object. |
void |
setResponseTypes(Set<String> responseTypes)
|
void |
setScope(Collection<String> scope)
|
void |
setState(String state)
|
| 从类 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 AuthorizationRequest()
public AuthorizationRequest(Map<String,String> authorizationParameters,
Map<String,String> approvalParameters,
String clientId,
Set<String> scope,
Set<String> resourceIds,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
boolean approved,
String state,
String redirectUri,
Set<String> responseTypes)
public AuthorizationRequest(String clientId,
Collection<String> scopes)
clientId - scopes - | 方法详细信息 |
|---|
public OAuth2Request createOAuth2Request()
public void setResourceIdsAndAuthoritiesFromClientDetails(ClientDetails clientDetails)
clientDetails - public Map<String,String> getApprovalParameters()
public void setApprovalParameters(Map<String,String> approvalParameters)
public String getState()
public void setState(String state)
public Set<String> getResponseTypes()
public void setResponseTypes(Set<String> responseTypes)
public void setRedirectUri(String redirectUri)
public void setApproved(boolean approved)
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
public Map<String,Serializable> getExtensions()
public void setExtensions(Map<String,Serializable> extensions)
public void setResourceIds(Set<String> resourceIds)
public void setClientId(String clientId)
public void setScope(Collection<String> scope)
public void setRequestParameters(Map<String,String> requestParameters)
public Set<String> getResourceIds()
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
public boolean isApproved()
public String getRedirectUri()
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.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||