org.springframework.security.ldap.authentication
Class SpringSecurityAuthenticationSource

java.lang.Object
  extended by org.springframework.security.ldap.authentication.SpringSecurityAuthenticationSource
All Implemented Interfaces:
AuthenticationSource

public class SpringSecurityAuthenticationSource
extends Object
implements AuthenticationSource

An AuthenticationSource to retrieve authentication information stored in Spring Security's SecurityContextHolder.

This is a copy of Spring LDAP's AcegiAuthenticationSource, updated for use with Spring Security 2.0.

Since:
2.0

Constructor Summary
SpringSecurityAuthenticationSource()
           
 
Method Summary
 String getCredentials()
           
 String getPrincipal()
          Get the principals of the logged in user, in this case the distinguished name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringSecurityAuthenticationSource

public SpringSecurityAuthenticationSource()
Method Detail

getPrincipal

public String getPrincipal()
Get the principals of the logged in user, in this case the distinguished name.

Specified by:
getPrincipal in interface AuthenticationSource
Returns:
the distinguished name of the logged in user.

getCredentials

public String getCredentials()
Specified by:
getCredentials in interface AuthenticationSource
See Also:
AuthenticationSource.getCredentials()