Class Pac4jToken

  • All Implemented Interfaces:
    Serializable, org.apache.shiro.authc.AuthenticationToken, org.apache.shiro.authc.RememberMeAuthenticationToken

    public class Pac4jToken
    extends Object
    implements org.apache.shiro.authc.RememberMeAuthenticationToken
    Token to store the pac4j profiles.
    Since:
    2.0.0
    Author:
    Jerome Leleu
    See Also:
    Serialized Form
    • Constructor Detail

      • Pac4jToken

        public Pac4jToken​(List<org.pac4j.core.profile.UserProfile> profiles,
                          boolean isRemembered)
    • Method Detail

      • getPrincipal

        public Object getPrincipal()
        Specified by:
        getPrincipal in interface org.apache.shiro.authc.AuthenticationToken
      • getCredentials

        public Object getCredentials()
        Specified by:
        getCredentials in interface org.apache.shiro.authc.AuthenticationToken
      • isRememberMe

        public boolean isRememberMe()
        Specified by:
        isRememberMe in interface org.apache.shiro.authc.RememberMeAuthenticationToken
      • getProfiles

        public List<org.pac4j.core.profile.UserProfile> getProfiles()