Class SpringSecurityAuthenticationSource
java.lang.Object
org.springframework.security.ldap.authentication.SpringSecurityAuthenticationSource
- All Implemented Interfaces:
org.springframework.ldap.core.AuthenticationSource
public class SpringSecurityAuthenticationSource
extends Object
implements org.springframework.ldap.core.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
-
Method Summary
Modifier and TypeMethodDescriptionGet the principals of the logged in user, in this case the distinguished name.
-
Constructor Details
-
SpringSecurityAuthenticationSource
public SpringSecurityAuthenticationSource()
-
-
Method Details
-
getPrincipal
Get the principals of the logged in user, in this case the distinguished name.- Specified by:
getPrincipal
in interfaceorg.springframework.ldap.core.AuthenticationSource
- Returns:
- the distinguished name of the logged in user.
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.ldap.core.AuthenticationSource
- See Also:
-
AuthenticationSource.getCredentials()
-