Package org.keycloak.representations.idm
Class AbstractUserRepresentation
java.lang.Object
org.keycloak.representations.idm.AbstractUserRepresentation
- Direct Known Subclasses:
UserRepresentation
,UserRepresentation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfirstAttribute
(String key) Returns all the attributes set to this user except the root attributes.getEmail()
getId()
Returns all the user attributes including the root attributes.void
setAttributes
(Map<String, List<String>> attributes) void
void
setEmailVerified
(Boolean emailVerified) void
setFirstName
(String firstName) void
void
setLastName
(String lastName) void
setUsername
(String username) void
setUserProfileMetadata
(UserProfileMetadata userProfileMetadata) <R extends AbstractUserRepresentation>
RsingleAttribute
(String name, String value)
-
Field Details
-
USERNAME
-
FIRST_NAME
-
LAST_NAME
-
EMAIL
-
LOCALE
-
id
-
username
-
firstName
-
lastName
-
email
-
emailVerified
-
attributes
-
-
Constructor Details
-
AbstractUserRepresentation
public AbstractUserRepresentation()
-
-
Method Details
-
getId
-
setId
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmail
-
setEmail
-
isEmailVerified
-
setEmailVerified
-
getUsername
-
setUsername
-
getAttributes
Returns all the attributes set to this user except the root attributes.- Returns:
- the user attributes.
-
getRawAttributes
Returns all the user attributes including the root attributes.- Returns:
- all the user attributes.
-
setAttributes
-
singleAttribute
-
firstAttribute
-
setUserProfileMetadata
-
getUserProfileMetadata
-