Package org.pac4j.core.profile
Interface UserProfile
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractJwtProfile
,AnonymousProfile
,BasicUserProfile
,CommonProfile
The contract that all user profiles must respect.
- Since:
- 4.0.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String key, Object value) void
addAuthenticationAttribute
(String key, Object value) void
addPermission
(String permission) Deprecated.void
addPermissions
(Collection<String> permissions) Deprecated.void
void
addRoles
(Collection<String> roles) boolean
containsAttribute
(String name) getAttribute
(String name) getId()
Deprecated.getRoles()
boolean
boolean
void
removeAttribute
(String key) void
void
setClientName
(String clientName) void
void
setLinkedId
(String linkedId) void
setRemembered
(boolean rme)
-
Method Details
-
getId
String getId() -
setId
-
getTypedId
String getTypedId() -
getUsername
String getUsername() -
getAttribute
-
getAttributes
-
containsAttribute
-
addAttribute
-
removeAttribute
-
addAuthenticationAttribute
-
removeAuthenticationAttribute
-
addRole
-
addRoles
-
getRoles
-
addPermission
Deprecated. -
addPermissions
Deprecated. -
getPermissions
Deprecated. -
isRemembered
boolean isRemembered() -
setRemembered
void setRemembered(boolean rme) -
getClientName
String getClientName() -
setClientName
-
getLinkedId
String getLinkedId() -
setLinkedId
-
isExpired
boolean isExpired() -
asPrincipal
Principal asPrincipal()
-