Class ADPrincipal

    • Constructor Detail

      • ADPrincipal

        public ADPrincipal​(String name)
    • Method Detail

      • getName

        public String getName()
        Returns the AD username for this ADPrincipal.
        Specified by:
        getName in interface Principal
        Returns:
        the AD username for this ADPrincipal.
      • toString

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

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

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