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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pac4j.springframework.security.authentication.Pac4jAuthentication
getProfile
-
Constructor Details
-
Pac4jAuthenticationToken
-
-
Method Details
-
getName
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
getProfiles
Description copied from interface:Pac4jAuthenticationGet all the profiles of the authenticated user.- Specified by:
getProfilesin interfacePac4jAuthentication- Returns:
- the list of profiles
-