public final class UserInfo extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Identity Toolkit API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
UserInfo.ProviderUserInfo
Model definition for UserInfoProviderUserInfo.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
UserInfo() |
| Modifier and Type | Method and Description |
|---|---|
UserInfo |
clone() |
byte[] |
decodePasswordHash()
The user's hashed password.
|
byte[] |
decodeSalt()
The user's password salt.
|
UserInfo |
encodePasswordHash(byte[] passwordHash)
The user's hashed password.
|
UserInfo |
encodeSalt(byte[] salt)
The user's password salt.
|
Long |
getCreatedAt()
User creation timestamp.
|
String |
getCustomAttributes()
The custom attributes to be set in the user's id token.
|
Boolean |
getCustomAuth()
Whether the user is authenticated by the developer.
|
Boolean |
getDisabled()
Whether the user is disabled.
|
String |
getDisplayName()
The name of the user.
|
String |
getEmail()
The email of the user.
|
Boolean |
getEmailVerified()
Whether the email has been verified.
|
Long |
getLastLoginAt()
last login timestamp.
|
String |
getLocalId()
The local ID of the user.
|
String |
getPasswordHash()
The user's hashed password.
|
Double |
getPasswordUpdatedAt()
The timestamp when the password was last updated.
|
String |
getPhoneNumber()
User's phone number.
|
String |
getPhotoUrl()
The URL of the user profile photo.
|
List<UserInfo.ProviderUserInfo> |
getProviderUserInfo()
The IDP of the user.
|
String |
getRawPassword()
The user's plain text password.
|
String |
getSalt()
The user's password salt.
|
String |
getScreenName()
User's screen name at Twitter or login name at Github.
|
Long |
getValidSince()
Timestamp in seconds for valid login token.
|
Integer |
getVersion()
Version of the user's password.
|
UserInfo |
set(String fieldName,
Object value) |
UserInfo |
setCreatedAt(Long createdAt)
User creation timestamp.
|
UserInfo |
setCustomAttributes(String customAttributes)
The custom attributes to be set in the user's id token.
|
UserInfo |
setCustomAuth(Boolean customAuth)
Whether the user is authenticated by the developer.
|
UserInfo |
setDisabled(Boolean disabled)
Whether the user is disabled.
|
UserInfo |
setDisplayName(String displayName)
The name of the user.
|
UserInfo |
setEmail(String email)
The email of the user.
|
UserInfo |
setEmailVerified(Boolean emailVerified)
Whether the email has been verified.
|
UserInfo |
setLastLoginAt(Long lastLoginAt)
last login timestamp.
|
UserInfo |
setLocalId(String localId)
The local ID of the user.
|
UserInfo |
setPasswordHash(String passwordHash)
The user's hashed password.
|
UserInfo |
setPasswordUpdatedAt(Double passwordUpdatedAt)
The timestamp when the password was last updated.
|
UserInfo |
setPhoneNumber(String phoneNumber)
User's phone number.
|
UserInfo |
setPhotoUrl(String photoUrl)
The URL of the user profile photo.
|
UserInfo |
setProviderUserInfo(List<UserInfo.ProviderUserInfo> providerUserInfo)
The IDP of the user.
|
UserInfo |
setRawPassword(String rawPassword)
The user's plain text password.
|
UserInfo |
setSalt(String salt)
The user's password salt.
|
UserInfo |
setScreenName(String screenName)
User's screen name at Twitter or login name at Github.
|
UserInfo |
setValidSince(Long validSince)
Timestamp in seconds for valid login token.
|
UserInfo |
setVersion(Integer version)
Version of the user's password.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Long getCreatedAt()
null for nonepublic UserInfo setCreatedAt(Long createdAt)
createdAt - createdAt or null for nonepublic String getCustomAttributes()
null for nonepublic UserInfo setCustomAttributes(String customAttributes)
customAttributes - customAttributes or null for nonepublic Boolean getCustomAuth()
null for nonepublic UserInfo setCustomAuth(Boolean customAuth)
customAuth - customAuth or null for nonepublic Boolean getDisabled()
null for nonepublic UserInfo setDisabled(Boolean disabled)
disabled - disabled or null for nonepublic String getDisplayName()
null for nonepublic UserInfo setDisplayName(String displayName)
displayName - displayName or null for nonepublic String getEmail()
null for nonepublic UserInfo setEmail(String email)
email - email or null for nonepublic Boolean getEmailVerified()
null for nonepublic UserInfo setEmailVerified(Boolean emailVerified)
emailVerified - emailVerified or null for nonepublic Long getLastLoginAt()
null for nonepublic UserInfo setLastLoginAt(Long lastLoginAt)
lastLoginAt - lastLoginAt or null for nonepublic String getLocalId()
null for nonepublic UserInfo setLocalId(String localId)
localId - localId or null for nonepublic String getPasswordHash()
null for nonedecodePasswordHash()public byte[] decodePasswordHash()
null for nonegetPasswordHash()public UserInfo setPasswordHash(String passwordHash)
passwordHash - passwordHash or null for none#encodePasswordHash()public UserInfo encodePasswordHash(byte[] passwordHash)
The value is encoded Base64 or {@code null} for none.
public Double getPasswordUpdatedAt()
null for nonepublic UserInfo setPasswordUpdatedAt(Double passwordUpdatedAt)
passwordUpdatedAt - passwordUpdatedAt or null for nonepublic String getPhoneNumber()
null for nonepublic UserInfo setPhoneNumber(String phoneNumber)
phoneNumber - phoneNumber or null for nonepublic String getPhotoUrl()
null for nonepublic UserInfo setPhotoUrl(String photoUrl)
photoUrl - photoUrl or null for nonepublic List<UserInfo.ProviderUserInfo> getProviderUserInfo()
null for nonepublic UserInfo setProviderUserInfo(List<UserInfo.ProviderUserInfo> providerUserInfo)
providerUserInfo - providerUserInfo or null for nonepublic String getRawPassword()
null for nonepublic UserInfo setRawPassword(String rawPassword)
rawPassword - rawPassword or null for nonepublic String getSalt()
null for nonedecodeSalt()public byte[] decodeSalt()
null for nonegetSalt()public UserInfo setSalt(String salt)
salt - salt or null for none#encodeSalt()public UserInfo encodeSalt(byte[] salt)
The value is encoded Base64 or {@code null} for none.
public String getScreenName()
null for nonepublic UserInfo setScreenName(String screenName)
screenName - screenName or null for nonepublic Long getValidSince()
null for nonepublic UserInfo setValidSince(Long validSince)
validSince - validSince or null for nonepublic Integer getVersion()
null for nonepublic UserInfo setVersion(Integer version)
version - version or null for nonepublic UserInfo set(String fieldName, Object value)
set in class GenericJsonpublic UserInfo clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.