|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.springframework.security.oauth2.provider.approval.TokenServicesUserApprovalHandler
public class TokenServicesUserApprovalHandler
A user approval handler that remembers approval decisions by consulting existing tokens.
| 构造方法摘要 | |
|---|---|
TokenServicesUserApprovalHandler()
|
|
| 方法摘要 | |
|---|---|
void |
afterPropertiesSet()
|
AuthorizationRequest |
checkForPreApproval(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
Provides a hook for allowing requests to be pre-approved (skipping the User Approval Page). |
boolean |
isApproved(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
Basic implementation just requires the authorization request to be explicitly approved and the user to be authenticated. |
void |
setApprovalParameter(String approvalParameter)
|
void |
setRequestFactory(OAuth2RequestFactory requestFactory)
|
void |
setTokenServices(AuthorizationServerTokenServices tokenServices)
|
AuthorizationRequest |
updateAfterApproval(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
Provides an opportunity to update the authorization request before it is checked for approval in cases where the incoming approval parameters contain richer information than just true/false (e.g. some scopes are approved, and others are rejected), implementations may need to be able to modify the AuthorizationRequest before a
token is generated from it. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TokenServicesUserApprovalHandler()
| 方法详细信息 |
|---|
public void setApprovalParameter(String approvalParameter)
approvalParameter - the approvalParameter to setpublic void setTokenServices(AuthorizationServerTokenServices tokenServices)
tokenServices - the token services to setpublic void setRequestFactory(OAuth2RequestFactory requestFactory)
public void afterPropertiesSet()
org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
public boolean isApproved(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
UserApprovalHandler 中的 isApprovedauthorizationRequest - The authorization request.userAuthentication - the current user authentication
public AuthorizationRequest checkForPreApproval(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
UserApprovalHandler 复制的描述Provides a hook for allowing requests to be pre-approved (skipping the User Approval Page). Some implementations may allow users to store approval decisions so that they only have to approve a site once. This method is called in the AuthorizationEndpoint before sending the user to the Approval page. If this method sets oAuth2Request.approved to true, the Approval page will be skipped.
UserApprovalHandler 中的 checkForPreApprovalauthorizationRequest - the authorization request.userAuthentication - the user authentication
public AuthorizationRequest updateAfterApproval(AuthorizationRequest authorizationRequest,
org.springframework.security.core.Authentication userAuthentication)
UserApprovalHandler 复制的描述
Provides an opportunity to update the authorization request before it is checked for approval in cases where the
incoming approval parameters contain richer information than just true/false (e.g. some scopes are approved, and
others are rejected), implementations may need to be able to modify the AuthorizationRequest before a
token is generated from it.
UserApprovalHandler 中的 updateAfterApprovalauthorizationRequest - the authorization request.userAuthentication - the user authentication
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||