Class 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:
    Serialized Form
    • Constructor Detail

      • Pac4jRememberMeAuthenticationToken

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

      • getName

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

        public boolean equals​(Object o)
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class org.springframework.security.authentication.RememberMeAuthenticationToken
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class org.springframework.security.authentication.RememberMeAuthenticationToken
      • 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