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, org.bremersee.spring.security.core.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:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.authentication.RememberMeAuthenticationToken

    org.springframework.security.authentication.RememberMeAuthenticationToken.Builder<B extends org.springframework.security.authentication.RememberMeAuthenticationToken.Builder<B>>

    Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>

    Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication

    org.springframework.security.core.Authentication.Builder<B extends org.springframework.security.core.Authentication.Builder<B>>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Object
     
    @NonNull String
     
     

    Methods inherited from class org.springframework.security.authentication.RememberMeAuthenticationToken

    equals, getKeyHash, hashCode, toBuilder

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    eraseCredentials, getAuthorities, getDetails, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.Authentication

    getAuthorities, getDetails, isAuthenticated, setAuthenticated, toBuilder

    Methods inherited from interface org.bremersee.spring.security.core.NormalizedAuthentication

    getGrantedAuthorityNames, getGroupNames, getGroups, hasAnyGrantedAuthority, hasAnyGrantedAuthority, hasGrantedAuthority, isInAnyGroup, isInAnyGroup, isInGroup

    Methods inherited from interface java.security.Principal

    equals, hashCode, implies, toString
  • 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 @NonNull LdaptiveUserDetails getPrincipal()
      Specified by:
      getPrincipal in interface org.springframework.security.core.Authentication
      Specified by:
      getPrincipal in interface LdaptiveAuthentication
      Specified by:
      getPrincipal in interface org.bremersee.spring.security.core.NormalizedAuthentication
      Overrides:
      getPrincipal in class org.springframework.security.authentication.RememberMeAuthenticationToken
    • getCredentials

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

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