Class LdaptiveRememberMeAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.RememberMeAuthenticationToken
org.bremersee.spring.security.ldaptive.authentication.LdaptiveRememberMeAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, NormalizedAuthentication, LdaptiveAuthentication, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class LdaptiveRememberMeAuthenticationToken extends org.springframework.security.authentication.RememberMeAuthenticationToken implements LdaptiveAuthentication
The ldaptive remember-me authentication token.
Author:
Christian Bremer
See Also:
  • Constructor Details

    • LdaptiveRememberMeAuthenticationToken

      public LdaptiveRememberMeAuthenticationToken(String key, LdaptiveAuthentication ldaptiveAuthentication)
      Constructor.
      Parameters:
      key - to identify if this object made by an authorised client
      ldaptiveAuthentication - the ldaptive authentication
      Throws:
      IllegalArgumentException - if a null was passed
  • Method Details

    • getPrincipal

      public LdaptiveUserDetails getPrincipal()
      Description copied from interface: NormalizedAuthentication
      Returns the normalized principal.
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
      Specified by:
      getPrincipal in interface LdaptiveAuthentication
      Specified by:
      getPrincipal in interface NormalizedAuthentication
      Overrides:
      getPrincipal in class org.springframework.security.authentication.RememberMeAuthenticationToken
      Returns:
      the normalized principal
    • getCredentials

      public Object getCredentials()
      Specified by:
      getCredentials in interface org.springframework.security.core.Authentication
      Overrides:
      getCredentials in class org.springframework.security.authentication.RememberMeAuthenticationToken
    • getName

      public String getName()
      Specified by:
      getName in interface Principal
      Overrides:
      getName in class org.springframework.security.authentication.AbstractAuthenticationToken