org.springframework.security.oauth2.provider.code
接口 AuthorizationCodeServices

所有已知实现类:
InMemoryAuthorizationCodeServices, JdbcAuthorizationCodeServices, RandomValueAuthorizationCodeServices

public interface AuthorizationCodeServices

Services for issuing and storing authorization codes.

作者:
Ryan Heaton

方法摘要
 OAuth2Authentication consumeAuthorizationCode(String code)
          Consume a authorization code.
 String createAuthorizationCode(OAuth2Authentication authentication)
          Create a authorization code for the specified authentications.
 

方法详细信息

createAuthorizationCode

String createAuthorizationCode(OAuth2Authentication authentication)
Create a authorization code for the specified authentications.

参数:
authentication - The authentications to store.
返回:
The generated code.

consumeAuthorizationCode

OAuth2Authentication consumeAuthorizationCode(String code)
                                              throws InvalidGrantException
Consume a authorization code.

参数:
code - The authorization code to consume.
返回:
The authentications associated with the code.
抛出:
InvalidGrantException - If the authorization code is invalid or expired.


Copyright © 2013. All rights reserved.