org.springframework.security.oauth2.client.token
类 DefaultClientKeyGenerator

java.lang.Object
  继承者 org.springframework.security.oauth2.client.token.DefaultClientKeyGenerator
所有已实现的接口:
ClientKeyGenerator

public class DefaultClientKeyGenerator
extends Object
implements ClientKeyGenerator

Basic key generator taking into account the client id, scope and username (principal name) if they exist.

作者:
Dave Syer

构造方法摘要
DefaultClientKeyGenerator()
           
 
方法摘要
 String extractKey(OAuth2ProtectedResourceDetails resource, org.springframework.security.core.Authentication authentication)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DefaultClientKeyGenerator

public DefaultClientKeyGenerator()
方法详细信息

extractKey

public String extractKey(OAuth2ProtectedResourceDetails resource,
                         org.springframework.security.core.Authentication authentication)
指定者:
接口 ClientKeyGenerator 中的 extractKey
参数:
resource - a protected resource declaration
authentication - a user Authentication (possibly null)
返回:
a unique key identifying an access token for this pair


Copyright © 2013. All rights reserved.