org.springframework.ldap.support.authentication
Class AcegiAuthenticationSource

java.lang.Object
  extended by org.springframework.ldap.support.authentication.AcegiAuthenticationSource
All Implemented Interfaces:
AuthenticationSource

public class AcegiAuthenticationSource
extends java.lang.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

Constructor Summary
AcegiAuthenticationSource()
           
 
Method Summary
 java.lang.String getCredentials()
          Get the credentials to use when creating an authenticated context.
 java.lang.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

AcegiAuthenticationSource

public AcegiAuthenticationSource()
Method Detail

getPrincipal

public java.lang.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 java.lang.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 (userName).


Copyright � 2002-2006. All Rights Reserved.