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
| 从类 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 declarationauthentication - a user Authentication (possibly null)
- 返回:
- a unique key identifying an access token for this pair
Copyright © 2013. All rights reserved.