Package org.keycloak.representations.idm
Class UserRepresentation
- java.lang.Object
- 
- org.keycloak.representations.idm.UserRepresentation
 
- 
- Direct Known Subclasses:
- AbstractResourceService.Permission
 
 public class UserRepresentation extends Object - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Map<String,List<String>>applicationRolesDeprecated.protected Map<String,List<String>>attributesprotected List<UserConsentRepresentation>clientConsentsprotected Map<String,List<String>>clientRolesprotected LongcreatedTimestampprotected List<CredentialRepresentation>credentialsprotected Set<String>disableableCredentialTypesprotected Stringemailprotected BooleanemailVerifiedprotected Booleanenabledprotected List<FederatedIdentityRepresentation>federatedIdentitiesprotected StringfederationLinkprotected StringfirstNameprotected List<String>groupsprotected Stringidprotected StringlastNameprotected IntegernotBeforeprotected Stringoriginprotected List<String>realmRolesprotected List<String>requiredActionsprotected Stringselfprotected StringserviceAccountClientIdprotected List<SocialLinkRepresentation>socialLinksDeprecated.protected Booleantotpprotected Stringusername
 - 
Constructor SummaryConstructors Constructor Description UserRepresentation()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
selfprotected String self 
 - 
idprotected String id 
 - 
originprotected String origin 
 - 
createdTimestampprotected Long createdTimestamp 
 - 
usernameprotected String username 
 - 
enabledprotected Boolean enabled 
 - 
totpprotected Boolean totp 
 - 
emailVerifiedprotected Boolean emailVerified 
 - 
firstNameprotected String firstName 
 - 
lastNameprotected String lastName 
 - 
emailprotected String email 
 - 
federationLinkprotected String federationLink 
 - 
serviceAccountClientIdprotected String serviceAccountClientId 
 - 
credentialsprotected List<CredentialRepresentation> credentials 
 - 
federatedIdentitiesprotected List<FederatedIdentityRepresentation> federatedIdentities 
 - 
clientConsentsprotected List<UserConsentRepresentation> clientConsents 
 - 
notBeforeprotected Integer notBefore 
 - 
applicationRoles@Deprecated protected Map<String,List<String>> applicationRoles Deprecated.
 - 
socialLinks@Deprecated protected List<SocialLinkRepresentation> socialLinks Deprecated.
 
- 
 - 
Method Detail- 
getSelfpublic String getSelf() 
 - 
setSelfpublic void setSelf(String self) 
 - 
getIdpublic String getId() 
 - 
setIdpublic void setId(String id) 
 - 
getCreatedTimestamppublic Long getCreatedTimestamp() 
 - 
setCreatedTimestamppublic void setCreatedTimestamp(Long createdTimestamp) 
 - 
getFirstNamepublic String getFirstName() 
 - 
setFirstNamepublic void setFirstName(String firstName) 
 - 
getLastNamepublic String getLastName() 
 - 
setLastNamepublic void setLastName(String lastName) 
 - 
getEmailpublic String getEmail() 
 - 
setEmailpublic void setEmail(String email) 
 - 
getUsernamepublic String getUsername() 
 - 
setUsernamepublic void setUsername(String username) 
 - 
isEnabledpublic Boolean isEnabled() 
 - 
setEnabledpublic void setEnabled(Boolean enabled) 
 - 
isTotp@Deprecated public Boolean isTotp() Deprecated.
 - 
setTotp@Deprecated public void setTotp(Boolean totp) Deprecated.
 - 
isEmailVerifiedpublic Boolean isEmailVerified() 
 - 
setEmailVerifiedpublic void setEmailVerified(Boolean emailVerified) 
 - 
singleAttributepublic UserRepresentation singleAttribute(String name, String value) 
 - 
getCredentialspublic List<CredentialRepresentation> getCredentials() 
 - 
setCredentialspublic void setCredentials(List<CredentialRepresentation> credentials) 
 - 
getFederatedIdentitiespublic List<FederatedIdentityRepresentation> getFederatedIdentities() 
 - 
setFederatedIdentitiespublic void setFederatedIdentities(List<FederatedIdentityRepresentation> federatedIdentities) 
 - 
getSocialLinkspublic List<SocialLinkRepresentation> getSocialLinks() 
 - 
setSocialLinkspublic void setSocialLinks(List<SocialLinkRepresentation> socialLinks) 
 - 
getClientConsentspublic List<UserConsentRepresentation> getClientConsents() 
 - 
setClientConsentspublic void setClientConsents(List<UserConsentRepresentation> clientConsents) 
 - 
getNotBeforepublic Integer getNotBefore() 
 - 
setNotBeforepublic void setNotBefore(Integer notBefore) 
 - 
getApplicationRoles@Deprecated public Map<String,List<String>> getApplicationRoles() Deprecated.
 - 
getFederationLinkpublic String getFederationLink() 
 - 
setFederationLinkpublic void setFederationLink(String federationLink) 
 - 
getServiceAccountClientIdpublic String getServiceAccountClientId() 
 - 
setServiceAccountClientIdpublic void setServiceAccountClientId(String serviceAccountClientId) 
 - 
getOriginpublic String getOrigin() Returns id of UserStorageProvider that loaded this user- Returns:
- NULL if user stored locally
 
 - 
setOriginpublic void setOrigin(String origin) 
 - 
setDisableableCredentialTypespublic void setDisableableCredentialTypes(Set<String> disableableCredentialTypes) 
 
- 
 
-