Spring Social

org.springframework.social.config.xml
Class SpringSecurityAuthenticationNameUserIdSource

java.lang.Object
  extended by org.springframework.social.config.xml.SpringSecurityAuthenticationNameUserIdSource
All Implemented Interfaces:
UserIdSource

public class SpringSecurityAuthenticationNameUserIdSource
extends java.lang.Object
implements UserIdSource

Implementation of UserIdSource that returns the Spring Security Authentication's name as the user ID.

Author:
Craig Walls

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

Constructor Detail

SpringSecurityAuthenticationNameUserIdSource

public SpringSecurityAuthenticationNameUserIdSource()
Method Detail

getUserId

public java.lang.String getUserId()
Specified by:
getUserId in interface UserIdSource
Returns:
A String that uniquely identifies a user within the application.

Spring Social