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 TypeMethodDescriptionvoidaddAttribute(String key, Object value) voidaddAuthenticationAttribute(String key, Object value) voidaddPermission(String permission) Deprecated.voidaddPermissions(Collection<String> permissions) Deprecated.voidvoidaddRoles(Collection<String> roles) booleancontainsAttribute(String name) getAttribute(String name) getId()Deprecated.getRoles()booleanbooleanvoidremoveAttribute(String key) voidvoidsetClientName(String clientName) voidvoidsetLinkedId(String linkedId) voidsetRemembered(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()
-