Class Pac4jAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.pac4j.springframework.security.authentication.Pac4jAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,Pac4jAuthentication
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class Pac4jAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
implements Pac4jAuthentication
Pac4j authentication token when the user is authenticated.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, 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
-
Constructor Details
-
Pac4jAuthenticationToken
-
-
Method Details
-
getName
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
getProfiles
Description copied from interface:Pac4jAuthentication
Get all the profiles of the authenticated user.- Specified by:
getProfiles
in interfacePac4jAuthentication
- Returns:
- the list of profiles
-