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 Summary
Fields Modifier and Type Field Description protected Map<String,List<String>>
applicationRoles
Deprecated.protected Map<String,List<String>>
attributes
protected List<UserConsentRepresentation>
clientConsents
protected Map<String,List<String>>
clientRoles
protected Long
createdTimestamp
protected List<CredentialRepresentation>
credentials
protected Set<String>
disableableCredentialTypes
protected String
email
protected Boolean
emailVerified
protected Boolean
enabled
protected List<FederatedIdentityRepresentation>
federatedIdentities
protected String
federationLink
protected String
firstName
protected List<String>
groups
protected String
id
protected String
lastName
protected Integer
notBefore
protected String
origin
protected List<String>
realmRoles
protected List<String>
requiredActions
protected String
self
protected String
serviceAccountClientId
protected List<SocialLinkRepresentation>
socialLinks
Deprecated.protected Boolean
totp
protected String
username
-
Constructor Summary
Constructors Constructor Description UserRepresentation()
-
Method Summary
-
-
-
Field Detail
-
self
protected String self
-
id
protected String id
-
origin
protected String origin
-
createdTimestamp
protected Long createdTimestamp
-
username
protected String username
-
enabled
protected Boolean enabled
-
totp
protected Boolean totp
-
emailVerified
protected Boolean emailVerified
-
firstName
protected String firstName
-
lastName
protected String lastName
-
email
protected String email
-
federationLink
protected String federationLink
-
serviceAccountClientId
protected String serviceAccountClientId
-
credentials
protected List<CredentialRepresentation> credentials
-
federatedIdentities
protected List<FederatedIdentityRepresentation> federatedIdentities
-
clientConsents
protected List<UserConsentRepresentation> clientConsents
-
notBefore
protected Integer notBefore
-
applicationRoles
@Deprecated protected Map<String,List<String>> applicationRoles
Deprecated.
-
socialLinks
@Deprecated protected List<SocialLinkRepresentation> socialLinks
Deprecated.
-
-
Method Detail
-
getSelf
public String getSelf()
-
setSelf
public void setSelf(String self)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getCreatedTimestamp
public Long getCreatedTimestamp()
-
setCreatedTimestamp
public void setCreatedTimestamp(Long createdTimestamp)
-
getFirstName
public String getFirstName()
-
setFirstName
public void setFirstName(String firstName)
-
getLastName
public String getLastName()
-
setLastName
public void setLastName(String lastName)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String email)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
isEnabled
public Boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
isTotp
@Deprecated public Boolean isTotp()
Deprecated.
-
setTotp
@Deprecated public void setTotp(Boolean totp)
Deprecated.
-
isEmailVerified
public Boolean isEmailVerified()
-
setEmailVerified
public void setEmailVerified(Boolean emailVerified)
-
singleAttribute
public UserRepresentation singleAttribute(String name, String value)
-
getCredentials
public List<CredentialRepresentation> getCredentials()
-
setCredentials
public void setCredentials(List<CredentialRepresentation> credentials)
-
getFederatedIdentities
public List<FederatedIdentityRepresentation> getFederatedIdentities()
-
setFederatedIdentities
public void setFederatedIdentities(List<FederatedIdentityRepresentation> federatedIdentities)
-
getSocialLinks
public List<SocialLinkRepresentation> getSocialLinks()
-
setSocialLinks
public void setSocialLinks(List<SocialLinkRepresentation> socialLinks)
-
getClientConsents
public List<UserConsentRepresentation> getClientConsents()
-
setClientConsents
public void setClientConsents(List<UserConsentRepresentation> clientConsents)
-
getNotBefore
public Integer getNotBefore()
-
setNotBefore
public void setNotBefore(Integer notBefore)
-
getApplicationRoles
@Deprecated public Map<String,List<String>> getApplicationRoles()
Deprecated.
-
getFederationLink
public String getFederationLink()
-
setFederationLink
public void setFederationLink(String federationLink)
-
getServiceAccountClientId
public String getServiceAccountClientId()
-
setServiceAccountClientId
public void setServiceAccountClientId(String serviceAccountClientId)
-
getOrigin
public String getOrigin()
Returns id of UserStorageProvider that loaded this user- Returns:
- NULL if user stored locally
-
setOrigin
public void setOrigin(String origin)
-
setDisableableCredentialTypes
public void setDisableableCredentialTypes(Set<String> disableableCredentialTypes)
-
-