org.springframework.security.oauth2.provider.token
接口 ResourceServerTokenServices

所有已知实现类:
DefaultTokenServices

public interface ResourceServerTokenServices


方法摘要
 OAuth2Authentication loadAuthentication(String accessToken)
          Load the credentials for the specified access token.
 OAuth2AccessToken readAccessToken(String accessToken)
          Retrieve the full access token details from just the value.
 

方法详细信息

loadAuthentication

OAuth2Authentication loadAuthentication(String accessToken)
                                        throws org.springframework.security.core.AuthenticationException
Load the credentials for the specified access token.

参数:
accessToken - The access token value.
返回:
The authentication for the access token.
抛出:
org.springframework.security.core.AuthenticationException - If the access token is expired

readAccessToken

OAuth2AccessToken readAccessToken(String accessToken)
Retrieve the full access token details from just the value.

参数:
accessToken - the token value
返回:
the full access token with client id etc.


Copyright © 2013. All rights reserved.