Package io.buji.pac4j.token
Class Pac4jToken
- java.lang.Object
-
- io.buji.pac4j.token.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 Summary
Constructors Constructor Description Pac4jToken(List<org.pac4j.core.profile.UserProfile> profiles, boolean isRemembered)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetCredentials()ObjectgetPrincipal()List<org.pac4j.core.profile.UserProfile>getProfiles()booleanisRememberMe()
-
-
-
Constructor Detail
-
Pac4jToken
public Pac4jToken(List<org.pac4j.core.profile.UserProfile> profiles, boolean isRemembered)
-
-
Method Detail
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipalin interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentialsin interfaceorg.apache.shiro.authc.AuthenticationToken
-
isRememberMe
public boolean isRememberMe()
- Specified by:
isRememberMein interfaceorg.apache.shiro.authc.RememberMeAuthenticationToken
-
getProfiles
public List<org.pac4j.core.profile.UserProfile> getProfiles()
-
-