Class PrincipalImpl

    • Constructor Detail

      • PrincipalImpl

        public PrincipalImpl​(String user)
        Construct a principal from a string user name.
        Parameters:
        user - The string form of the principal name.
    • Method Detail

      • equals

        public boolean equals​(Object another)
        Returns true if the object passed matches the principal represented in this implementation.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        another - the Principal to compare with.
        Returns:
        true if the Principal passed is the same as that encapsulated in this object, false otherwise