Package org.pac4j.core.profile
Class Pac4JPrincipal
java.lang.Object
org.pac4j.core.profile.Pac4JPrincipal
- All Implemented Interfaces:
Principal
Default implementation for
Principal
based on a pac4j
BasicUserProfile
.
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 Details
-
Pac4JPrincipal
Constructor for Pac4JPrincipal.
- Parameters:
profile
- aUserProfile
object
-