Class Pac4jRememberMeAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.RememberMeAuthenticationToken
org.pac4j.springframework.security.authentication.Pac4jRememberMeAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, Pac4jAuthentication, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class Pac4jRememberMeAuthenticationToken extends org.springframework.security.authentication.RememberMeAuthenticationToken implements Pac4jAuthentication
Pac4j authentication token in case of remember-me.
Since:
2.0.0
Author:
Jerome Leleu
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pac4jRememberMeAuthenticationToken(List<org.pac4j.core.profile.UserProfile> profiles)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    List<org.pac4j.core.profile.UserProfile>
    Get all the profiles of the authenticated user.

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

    equals, getCredentials, getKeyHash, getPrincipal, hashCode

    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.pac4j.springframework.security.authentication.Pac4jAuthentication

    getProfile

    Methods inherited from interface java.security.Principal

    implies
  • Constructor Details

    • Pac4jRememberMeAuthenticationToken

      public Pac4jRememberMeAuthenticationToken(List<org.pac4j.core.profile.UserProfile> profiles)
  • Method Details

    • getName

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

      public List<org.pac4j.core.profile.UserProfile> getProfiles()
      Description copied from interface: Pac4jAuthentication
      Get all the profiles of the authenticated user.
      Specified by:
      getProfiles in interface Pac4jAuthentication
      Returns:
      the list of profiles