org.springframework.security.oauth2.client.token
Class DefaultClientKeyGenerator
java.lang.Object
org.springframework.security.oauth2.client.token.DefaultClientKeyGenerator
- All Implemented Interfaces:
- 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.
- Author:
- Dave Syer
| Methods inherited from class 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)
- Specified by:
extractKey in interface ClientKeyGenerator
- Parameters:
resource - a protected resource declarationauthentication - a user Authentication (possibly null)
- Returns:
- a unique key identifying an access token for this pair
Copyright © 2013. All rights reserved.