Class DeviceUser
-
- All Implemented Interfaces:
@Serializable() public final class DeviceUser
Represents the model of a device user.
- Since:
3.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
DeviceUser.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
id
private final String
name
private final String
email
private final String
secureStoreName
private final String
familyName
private final String
givenName
private final String
secureStoreName2
private final User
user
private final Boolean
current
private final Boolean
onBoarded
private final Long
creationTime
private final Long
updateTime
public final static DeviceUser.Companion
Companion
-
Constructor Summary
Constructors Constructor Description DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
-
Method Summary
Modifier and Type Method Description final String
getId()
final String
getName()
final String
getEmail()
final String
getSecureStoreName()
final String
getFamilyName()
final String
getGivenName()
final String
getSecureStoreName2()
final User
getUser()
final Boolean
getCurrent()
Whether a user is the current active user or not. final Boolean
getOnBoarded()
Whether a user went through the complete onboarding process and ready to unlock the app with the passcode. final Long
getCreationTime()
The creation time of this user. final Long
getUpdateTime()
The latest update time. String
toString()
final static String
obfuscateEmail(String str)
The default algorithm to obfuscate email, only keep the first one or two characters of the user name and only the first character of the domain name. final static String
obfuscateName(String name)
The default algorithm to obfuscate user name, only keep the first one or 2 characters. -
-
Constructor Detail
-
DeviceUser
DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
-
-
Method Detail
-
getId
final String getId()
-
getName
final String getName()
-
getEmail
final String getEmail()
-
getSecureStoreName
final String getSecureStoreName()
-
getFamilyName
final String getFamilyName()
-
getGivenName
final String getGivenName()
-
getSecureStoreName2
final String getSecureStoreName2()
-
getCurrent
final Boolean getCurrent()
Whether a user is the current active user or not.
-
getOnBoarded
final Boolean getOnBoarded()
Whether a user went through the complete onboarding process and ready to unlock the app with the passcode.
-
getCreationTime
final Long getCreationTime()
The creation time of this user.
-
getUpdateTime
final Long getUpdateTime()
The latest update time.
-
toString
String toString()
-
obfuscateEmail
final static String obfuscateEmail(String str)
The default algorithm to obfuscate email, only keep the first one or two characters of the user name and only the first character of the domain name.
-
obfuscateName
final static String obfuscateName(String name)
The default algorithm to obfuscate user name, only keep the first one or 2 characters.
-
-
-
-