org.springframework.security.oauth2.provider.token
Class DefaultAuthenticationKeyGenerator

java.lang.Object
  extended by 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

Constructor Summary
DefaultAuthenticationKeyGenerator()
           
 
Method Summary
 String extractKey(OAuth2Authentication authentication)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthenticationKeyGenerator

public DefaultAuthenticationKeyGenerator()
Method Detail

extractKey

public String extractKey(OAuth2Authentication authentication)
Specified by:
extractKey in interface AuthenticationKeyGenerator
Parameters:
authentication - an OAuth2Authentication
Returns:
a unique key identifying the authentication


Copyright © 2012. All Rights Reserved.