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
    • Constructor Summary

      Constructors 
      Constructor Description
      DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      final String getId() The user id, it's the same as the user model saved at server side.
      final String getName() If name property returned from server, then 'name' would be 'family name, first name', otherwise 'userName'.
      final String getEmail() The email address, it might be empty.
      final String getSecureStoreName() The secure store name of this user.
      final String getFamilyName()
      final String getGivenName()
      final String getSecureStoreName2() The secure store name with the one way hash algorithm.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeviceUser

        DeviceUser(User user, Boolean current, Boolean onBoarded, Long creationTime, Long updateTime)
    • Method Detail

      • 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.

      • getId

         final String getId()

        The user id, it's the same as the user model saved at server side.

      • getName

         final String getName()

        If name property returned from server, then 'name' would be 'family name, first name', otherwise 'userName'.

      • getEmail

         final String getEmail()

        The email address, it might be empty.

      • getSecureStoreName

         final String getSecureStoreName()

        The secure store name of this user.

      • getSecureStoreName2

         final String getSecureStoreName2()

        The secure store name with the one way hash algorithm.

      • 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.