Class UserImpl

  • All Implemented Interfaces:
    User
    Direct Known Subclasses:
    OAuthUserImpl

    public class UserImpl
    extends java.lang.Object
    implements User
    • Constructor Summary

      Constructors 
      Constructor Description
      UserImpl​(java.lang.String username, java.lang.String password, java.lang.String id, java.lang.String scope)  
      UserImpl​(java.lang.String username, java.lang.String password, java.lang.String id, java.lang.String scope, java.lang.String region)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getId()
      A unique id to distinguish the user from others.
      java.lang.String getPassword()
      Password, if authentication is required.
      java.lang.String getRegion()
      Region of the user, if it belongs to one.
      java.lang.String getScope()
      Scope of the user.
      java.lang.String getUsername()
      User name.
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • UserImpl

        public UserImpl​(java.lang.String username,
                        java.lang.String password,
                        java.lang.String id,
                        java.lang.String scope,
                        java.lang.String region)
      • UserImpl

        public UserImpl​(java.lang.String username,
                        java.lang.String password,
                        java.lang.String id,
                        java.lang.String scope)
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Description copied from interface: User
        User name.
        Specified by:
        getUsername in interface User
        Returns:
        User name.
      • getPassword

        public java.lang.String getPassword()
        Description copied from interface: User
        Password, if authentication is required.
        Specified by:
        getPassword in interface User
        Returns:
        Password.
      • getScope

        public java.lang.String getScope()
        Description copied from interface: User
        Scope of the user.
        Specified by:
        getScope in interface User
        Returns:
        Authorization scope.
      • getId

        public java.lang.String getId()
        Description copied from interface: User
        A unique id to distinguish the user from others.
        Specified by:
        getId in interface User
        Returns:
        The id of the user.
      • getRegion

        public java.lang.String getRegion()
        Description copied from interface: User
        Region of the user, if it belongs to one.
        Specified by:
        getRegion in interface User
        Returns:
        Region of the user
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object