Class NTPrincipal

    • Constructor Detail

      • NTPrincipal

        public NTPrincipal​(String name)
        TODO-JAVADOC
    • Method Detail

      • getName

        public String getName()
        Returns the user name for this NTPrincipal.
        Specified by:
        getName in interface Principal
        Returns:
        the user name for this NTPrincipal.
      • toString

        public String toString()
        Returns a string representation of this NTPrincipal.
        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        a string representation of this NTPrincipal.
      • equals

        public boolean equals​(Object o)
        Compares the specified Object with this NTPrincipal for equality. Returns true if the given object is also a NTPrincipal and the two NTPrincipals have the same user name.
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class Object
        Parameters:
        o - Object to be compared for equality with this NTPrincipal.
        Returns:
        true if the specified Object is equal equal to this NTPrincipal.
      • hashCode

        public int hashCode()
        Returns a hash code for this NTPrincipal.
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this NTPrincipal.