Package org.pac4j.core.profile
Class Pac4JPrincipal
- java.lang.Object
-
- org.pac4j.core.profile.Pac4JPrincipal
-
- All Implemented Interfaces:
Principal
public class Pac4JPrincipal extends Object implements Principal
Default implementation forPrincipal
based on a pac4jBasicUserProfile
. It determines the name based on the profile's username, and fallbacks to id if it doesn't exist.- Since:
- 3.0.0
- Author:
- Victor Noel
-
-
Constructor Summary
Constructors Constructor Description Pac4JPrincipal(UserProfile profile)
-
-
-
Constructor Detail
-
Pac4JPrincipal
public Pac4JPrincipal(UserProfile profile)
-
-
Method Detail
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object o)
-
-