org.springframework.security.oauth2.provider.token
Class DefaultAuthenticationKeyGenerator
java.lang.Object
org.springframework.security.oauth2.provider.token.DefaultAuthenticationKeyGenerator
- All Implemented Interfaces:
- AuthenticationKeyGenerator
public class DefaultAuthenticationKeyGenerator
- extends Object
- implements AuthenticationKeyGenerator
Basic key generator taking into account the client id, scope, reource ids 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 |
DefaultAuthenticationKeyGenerator
public DefaultAuthenticationKeyGenerator()
extractKey
public String extractKey(OAuth2Authentication authentication)
- Specified by:
extractKey in interface AuthenticationKeyGenerator
- Parameters:
authentication - an OAuth2Authentication
- Returns:
- a unique key identifying the authentication
Copyright © 2013. All rights reserved.