Package org.keycloak.representations.idm
Class UserRepresentation
java.lang.Object
org.keycloak.representations.idm.UserRepresentation
- Direct Known Subclasses:
AbstractResourceService.Permission
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.protected List<UserConsentRepresentation>protected Longprotected List<CredentialRepresentation>protected Stringprotected Booleanprotected Booleanprotected List<FederatedIdentityRepresentation>protected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected Stringprotected List<SocialLinkRepresentation>Deprecated.protected Booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfirstAttribute(String key) Deprecated.getEmail()getId()Returns id of UserStorageProvider that loaded this usergetSelf()isTotp()Deprecated.voidvoidsetAttributes(Map<String, List<String>> attributes) voidsetClientConsents(List<UserConsentRepresentation> clientConsents) voidsetClientRoles(Map<String, List<String>> clientRoles) voidsetCreatedTimestamp(Long createdTimestamp) voidsetCredentials(List<CredentialRepresentation> credentials) voidsetDisableableCredentialTypes(Set<String> disableableCredentialTypes) voidvoidsetEmailVerified(Boolean emailVerified) voidsetEnabled(Boolean enabled) voidsetFederatedIdentities(List<FederatedIdentityRepresentation> federatedIdentities) voidsetFederationLink(String federationLink) voidsetFirstName(String firstName) voidvoidvoidsetLastName(String lastName) voidsetNotBefore(Integer notBefore) voidvoidsetRealmRoles(List<String> realmRoles) voidsetRequiredActions(List<String> requiredActions) voidvoidsetServiceAccountClientId(String serviceAccountClientId) voidsetSocialLinks(List<SocialLinkRepresentation> socialLinks) voidDeprecated.voidsetUsername(String username) voidsetUserProfileMetadata(UserProfileMetadata userProfileMetadata) singleAttribute(String name, String value)
-
Field Details
-
self
-
id
-
origin
-
createdTimestamp
-
username
-
enabled
-
totp
-
emailVerified
-
firstName
-
lastName
-
email
-
federationLink
-
serviceAccountClientId
-
attributes
-
credentials
-
disableableCredentialTypes
-
requiredActions
-
federatedIdentities
-
realmRoles
-
clientRoles
-
clientConsents
-
notBefore
-
applicationRoles
Deprecated. -
groups
-
-
Constructor Details
-
UserRepresentation
public UserRepresentation()
-
-
Method Details
-
getSelf
-
setSelf
-
getId
-
setId
-
getCreatedTimestamp
-
setCreatedTimestamp
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getEmail
-
setEmail
-
getUsername
-
setUsername
-
isEnabled
-
setEnabled
-
isTotp
Deprecated. -
setTotp
Deprecated. -
isEmailVerified
-
setEmailVerified
-
getAttributes
-
setAttributes
-
singleAttribute
-
firstAttribute
-
getCredentials
-
setCredentials
-
getRequiredActions
-
setRequiredActions
-
getFederatedIdentities
-
setFederatedIdentities
-
getSocialLinks
-
setSocialLinks
-
getRealmRoles
-
setRealmRoles
-
getClientRoles
-
setClientRoles
-
getClientConsents
-
setClientConsents
-
getNotBefore
-
setNotBefore
-
getApplicationRoles
Deprecated. -
getFederationLink
-
setFederationLink
-
getServiceAccountClientId
-
setServiceAccountClientId
-
getGroups
-
setGroups
-
getOrigin
Returns id of UserStorageProvider that loaded this user- Returns:
- NULL if user stored locally
-
setOrigin
-
getDisableableCredentialTypes
-
setDisableableCredentialTypes
-
getAccess
-
setAccess
-
toAttributes
-
setUserProfileMetadata
-
getUserProfileMetadata
-
socialLinks