org.springframework.security.oauth2.provider.code
类 RandomValueAuthorizationCodeServices

java.lang.Object
  继承者 org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
所有已实现的接口:
AuthorizationCodeServices
直接已知子类:
InMemoryAuthorizationCodeServices, JdbcAuthorizationCodeServices

public abstract class RandomValueAuthorizationCodeServices
extends Object
implements AuthorizationCodeServices

Base implementation for authorization code services that generates a random-value authorization code.

作者:
Ryan Heaton, Dave Syer

构造方法摘要
RandomValueAuthorizationCodeServices()
           
 
方法摘要
 OAuth2Authentication consumeAuthorizationCode(String code)
          Consume a authorization code.
 String createAuthorizationCode(OAuth2Authentication authentication)
          Create a authorization code for the specified authentications.
protected abstract  OAuth2Authentication remove(String code)
           
protected abstract  void store(String code, OAuth2Authentication authentication)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

RandomValueAuthorizationCodeServices

public RandomValueAuthorizationCodeServices()
方法详细信息

store

protected abstract void store(String code,
                              OAuth2Authentication authentication)

remove

protected abstract OAuth2Authentication remove(String code)

createAuthorizationCode

public String createAuthorizationCode(OAuth2Authentication authentication)
从接口 AuthorizationCodeServices 复制的描述
Create a authorization code for the specified authentications.

指定者:
接口 AuthorizationCodeServices 中的 createAuthorizationCode
参数:
authentication - The authentications to store.
返回:
The generated code.

consumeAuthorizationCode

public OAuth2Authentication consumeAuthorizationCode(String code)
                                              throws InvalidGrantException
从接口 AuthorizationCodeServices 复制的描述
Consume a authorization code.

指定者:
接口 AuthorizationCodeServices 中的 consumeAuthorizationCode
参数:
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.