Class SpringSecurityAuthenticationSource

  • All Implemented Interfaces:

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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCredentials()  
      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

      • SpringSecurityAuthenticationSource

        public SpringSecurityAuthenticationSource()
    • 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 org.springframework.ldap.core.AuthenticationSource
        the distinguished name of the logged in user.
      • getCredentials

        public java.lang.String getCredentials()
        Specified by:
        getCredentials in interface org.springframework.ldap.core.AuthenticationSource
        See Also: