Class ResourcePrincipal

    • Constructor Detail

      • ResourcePrincipal

        public ResourcePrincipal​(String name,
                                 String password)
    • Method Detail

      • getPassword

        public String getPassword()
      • equals

        public boolean equals​(Object o)
        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:
        o - 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.