Top Fields Constructors Methods
org.keycloak.representations.idm

public Class UserRepresentation

extends AbstractUserRepresentation
Class Inheritance
Imports
java.util.List, .Map, .Set

Author
Bill Burke
Version
$Revision: 1 $

Field Summary

Modifier and TypeField and Description
private Map<String, Boolean>
protected Map<String, List<String>>
applicationRoles

Deprecated
protected List<UserConsentRepresentation>
protected Map<String, List<String>>
protected Long
protected List<CredentialRepresentation>
protected Set<String>
protected Boolean
protected List<FederatedIdentityRepresentation>
protected String
protected List<String>
protected Integer
protected String
protected List<String>
protected List<String>
protected String
protected String
protected List<SocialLinkRepresentation>
socialLinks

Deprecated
protected Boolean
Inherited from org.keycloak.representations.idm.AbstractUserRepresentation:
attributesEMAILemailemailVerifiedFIRST_NAMEfirstNameidLAST_NAMElastNameLOCALEUSERNAMEusername

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Map<String, Boolean>
public Map<String, List<String>>
getApplicationRoles()

Deprecated
public List<UserConsentRepresentation>
public Map<String, List<String>>
public Long
public List<CredentialRepresentation>
public Set<String>
public List<FederatedIdentityRepresentation>
public List<String>
public Integer
public String

Returns:

NULL if user stored locally
getOrigin
()

Returns id of UserStorageProvider that loaded this user

public List<String>
public List<String>
public String
public String
public Boolean
public Boolean
isTotp()

Deprecated
public void
public void
public void
public void
setCreatedTimestamp(Long createdTimestamp)

public void
public void
setDisableableCredentialTypes(Set<String> disableableCredentialTypes)

public void
public void
public void
public void
setNotBefore(Integer notBefore)

public void
setOrigin(String origin)

public void
setRealmRoles(List<String> realmRoles)

public void
setRequiredActions(List<String> requiredActions)

public void
public void
setServiceAccountClientId(String serviceAccountClientId)

public void
setTotp(Boolean totp)

Deprecated
Inherited from org.keycloak.representations.idm.AbstractUserRepresentation:
firstAttributegetAttributesgetEmailgetFirstNamegetIdgetLastNamegetRawAttributesgetUsernamegetUserProfileMetadataisEmailVerifiedsetAttributessetEmailsetEmailVerifiedsetFirstNamesetIdsetLastNamesetUsernamesetUserProfileMetadatasingleAttribute

Field Detail

accessback to summary
private Map<String, Boolean> access
applicationRolesback to summary
protected Map<String, List<String>> applicationRoles

Deprecated

Annotations
@Deprecated
clientConsentsback to summary
protected List<UserConsentRepresentation> clientConsents
clientRolesback to summary
protected Map<String, List<String>> clientRoles
createdTimestampback to summary
protected Long createdTimestamp
credentialsback to summary
protected List<CredentialRepresentation> credentials
disableableCredentialTypesback to summary
protected Set<String> disableableCredentialTypes
enabledback to summary
protected Boolean enabled
federatedIdentitiesback to summary
protected List<FederatedIdentityRepresentation> federatedIdentities
groupsback to summary
protected List<String> groups
notBeforeback to summary
protected Integer notBefore
originback to summary
protected String origin
realmRolesback to summary
protected List<String> realmRoles
requiredActionsback to summary
protected List<String> requiredActions
selfback to summary
protected String self
serviceAccountClientIdback to summary
protected String serviceAccountClientId
totpback to summary
protected Boolean totp

Constructor Detail

UserRepresentationback to summary
public UserRepresentation()

Method Detail

getAccessback to summary
public Map<String, Boolean> getAccess()
getApplicationRolesback to summary
public Map<String, List<String>> getApplicationRoles()

Deprecated

Annotations
@Deprecated
getClientConsentsback to summary
public List<UserConsentRepresentation> getClientConsents()
getClientRolesback to summary
public Map<String, List<String>> getClientRoles()
getCreatedTimestampback to summary
public Long getCreatedTimestamp()
getCredentialsback to summary
public List<CredentialRepresentation> getCredentials()
getDisableableCredentialTypesback to summary
public Set<String> getDisableableCredentialTypes()
getFederatedIdentitiesback to summary
public List<FederatedIdentityRepresentation> getFederatedIdentities()
getGroupsback to summary
public List<String> getGroups()
getNotBeforeback to summary
public Integer getNotBefore()
getOriginback to summary
public String getOrigin()

Returns id of UserStorageProvider that loaded this user

Returns:String

NULL if user stored locally

getRealmRolesback to summary
public List<String> getRealmRoles()
getRequiredActionsback to summary
public List<String> getRequiredActions()
getSelfback to summary
public String getSelf()
getServiceAccountClientIdback to summary
public String getServiceAccountClientId()
isEnabledback to summary
public Boolean isEnabled()
isTotpback to summary
public Boolean isTotp()

Deprecated

Annotations
@Deprecated
setAccessback to summary
public void setAccess(Map<String, Boolean> access)
setClientConsentsback to summary
public void setClientConsents(List<UserConsentRepresentation> clientConsents)
setClientRolesback to summary
public void setClientRoles(Map<String, List<String>> clientRoles)
setCreatedTimestampback to summary
public void setCreatedTimestamp(Long createdTimestamp)
setCredentialsback to summary
public void setCredentials(List<CredentialRepresentation> credentials)
setDisableableCredentialTypesback to summary
public void setDisableableCredentialTypes(Set<String> disableableCredentialTypes)
setEnabledback to summary
public void setEnabled(Boolean enabled)
setFederatedIdentitiesback to summary
public void setFederatedIdentities(List<FederatedIdentityRepresentation> federatedIdentities)
setGroupsback to summary
public void setGroups(List<String> groups)
setNotBeforeback to summary
public void setNotBefore(Integer notBefore)
setOriginback to summary
public void setOrigin(String origin)
setRealmRolesback to summary
public void setRealmRoles(List<String> realmRoles)
setRequiredActionsback to summary
public void setRequiredActions(List<String> requiredActions)
setSelfback to summary
public void setSelf(String self)
setServiceAccountClientIdback to summary
public void setServiceAccountClientId(String serviceAccountClientId)
setTotpback to summary
public void setTotp(Boolean totp)

Deprecated

Annotations
@Deprecated