@Entity @Indexed(index="user_identities") @Analyzer(definition="entity_analyzer") public final class UserIdentity extends AbstractAuthzEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
UserIdentity.Deserializer
Deserialize a reference to an User.
|
| Constructor and Description |
|---|
UserIdentity() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getClaims()
Retrieve identity claims made by the authenticator.
|
User |
getOwner()
The owner of this entity.
|
String |
getPassword()
Get the password.
|
String |
getRemoteId()
The remote ID by which the authenticator recognizes the user.
|
String |
getSalt()
Get the salt.
|
List<OAuthToken> |
getTokens()
Get all the tokens issued to this identity.
|
AuthenticatorType |
getType()
The type of authenticator.
|
User |
getUser()
Get the user record for this identity.
|
void |
setClaims(Map<String,String> claims)
Set the claims made by the authenticator.
|
void |
setPassword(String password)
Set a new password.
|
void |
setRemoteId(String remoteId)
Set the remote ID by which the authenticator recognizes the user.
|
void |
setSalt(String salt)
Set a new salt.
|
void |
setTokens(List<OAuthToken> tokens)
Set the list of tokens for this user.
|
void |
setType(AuthenticatorType authType)
Set the type of authenticator.
|
void |
setUser(User user)
Set the user for this identity.
|
clone, equals, getCreatedDate, getId, getModifiedDate, hashCode, setCreatedDate, setId, setModifiedDate, toStringpublic User getUser()
public void setUser(User user)
user - This identity's user.public String getRemoteId()
public void setRemoteId(String remoteId)
remoteId - The remote ID.public Map<String,String> getClaims()
public void setClaims(Map<String,String> claims)
claims - The claims.public AuthenticatorType getType()
public void setType(AuthenticatorType authType)
authType - The new authType.public List<OAuthToken> getTokens()
public void setTokens(List<OAuthToken> tokens)
tokens - A new list of tokens.public String getSalt()
public void setSalt(String salt)
salt - A new salt, should be 32 characters long.public String getPassword()
public void setPassword(String password)
password - The new password.public User getOwner()
getOwner in class AbstractAuthzEntityCopyright © 2018 krotscheck.net. All rights reserved.