org.springframework.ldap.authentication
Class AcegiAuthenticationSource
java.lang.Object
org.springframework.ldap.authentication.AcegiAuthenticationSource
- All Implemented Interfaces:
- AuthenticationSource
public class AcegiAuthenticationSource
- extends Object
- implements AuthenticationSource
An AuthenticationSource to retrieve authentication information stored in
Acegi's SecurityContextHolder. Use Acegi's LdapAuthenticationProvider have a
LdapUserDetails object placed in the authentication.
- Author:
- Mattias Arthursson
Method Summary |
String |
getCredentials()
Get the credentials to use when creating an authenticated context. |
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 |
AcegiAuthenticationSource
public AcegiAuthenticationSource()
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()
- Description copied from interface:
AuthenticationSource
- Get the credentials to use when creating an authenticated context.
- Specified by:
getCredentials
in interface AuthenticationSource
- Returns:
- the credentials (password).
Copyright © 2006-2009 Spring Framework. All Rights Reserved.