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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Pac4jAuthenticationToken(List<org.pac4j.core.profile.CommonProfile> profiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getCredentials()
String
getName()
Object
getPrincipal()
List<org.pac4j.core.profile.CommonProfile>
getProfiles()
Get all the profiles of the authenticated user.-
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 Detail
-
Pac4jAuthenticationToken
public Pac4jAuthenticationToken(List<org.pac4j.core.profile.CommonProfile> profiles)
-
-
Method Detail
-
getName
public String getName()
-
getCredentials
public Object getCredentials()
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
getProfiles
public List<org.pac4j.core.profile.CommonProfile> getProfiles()
Description copied from interface:Pac4jAuthentication
Get all the profiles of the authenticated user.- Specified by:
getProfiles
in interfacePac4jAuthentication
- Returns:
- the list of profiles
-
-