Class LDAPPrincipal

    • Constructor Detail

      • LDAPPrincipal

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

      • getName

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

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

        public boolean equals​(Object o)
        Compares the specified Object with this LDAPPrincipal for equality. Returns true if the given object is also a LDAPPrincipal and the two LDAPPrincipals 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 LDAPPrincipal.
        Returns:
        true if the specified Object is equal equal to this LDAPPrincipal.
      • hashCode

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