Class User

    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getUsername

        public String getUsername()
        Returns the username for the user.
        Returns:
        the user name
      • getPassword

        public String getPassword()
        Returns the password for the user.
        Returns:
        the users password
      • getGroups

        public List<String> getGroups()
        Returns a collection of groups the user belongs to.
        Returns:
        the groups the user belongs
      • getRealm

        public String getRealm()
        Returns the realm the user belongs to.
        Returns:
        the users realm
      • isApplicationUser

        public boolean isApplicationUser()
        Indicates whether or not this is an application user.
        Returns:
        true if this is an application user, otherwise false
      • set

        public void set​(String value)
        Allows a user to be set by a string value. The format is user:password:groups:realm:true|false.

        Both username and password are required. Groups can be a comma delimited set of groups.

        Parameters:
        value - the string user value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object