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

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

Constructor Summary
DefaultClientKeyGenerator()
           
 
Method Summary
 String extractKey(OAuth2ProtectedResourceDetails resource, org.springframework.security.core.Authentication authentication)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClientKeyGenerator

public DefaultClientKeyGenerator()
Method Detail

extractKey

public String extractKey(OAuth2ProtectedResourceDetails resource,
                         org.springframework.security.core.Authentication authentication)
Specified by:
extractKey in interface ClientKeyGenerator
Parameters:
resource - a protected resource declaration
authentication - a user Authentication (possibly null)
Returns:
a unique key identifying an access token for this pair


Copyright © 2012. All Rights Reserved.