Class FileRealmStorageManager.User

    • Constructor Detail

      • User

        public User​(String name)
        Constructor.
      • User

        public User​(String name,
                    String[] groups,
                    String realm,
                    byte[] salt,
                    byte[] hash,
                    String algo)
        Constructor.
        Parameters:
        name - User name.
        groups - Group memerships.
        realm - Realm.
        salt - SSHA salt.
        hash - SSHA password hash.
    • Method Detail

      • equals

        public boolean equals​(Object obj)
        Description copied from class: PrincipalImpl
        This function returns true if the object passed matches the principal represented in this implementation
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class PrincipalImpl
        Parameters:
        obj - the Principal to compare with.
        Returns:
        true if the Principal passed is the same as that encapsulated in this object, false otherwise
      • hashCode

        public int hashCode()
        Description copied from class: PrincipalImpl
        Returns the hashcode for this Principal object
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class PrincipalImpl
        Returns:
        a hashcode for the principal.
      • getSalt

        public byte[] getSalt()
        Returns salt value.
      • setSalt

        public void setSalt​(byte[] salt)
        Set salt value.
      • getHash

        public byte[] getHash()
        Get hash value.
      • setHash

        public void setHash​(byte[] hash)
        Set hash value.
      • getGroups

        public String[] getGroups()
        Return the names of the groups this user belongs to.
        Returns:
        String[] List of group memberships.
      • setGroups

        public void setGroups​(String[] grp)
        Set group membership.
      • getAlgo

        public String getAlgo()
        Returns:
        the algo
      • setAlgo

        public void setAlgo​(String algo)
        Parameters:
        algo - the algo to set