Class ApplicationPrincipal

    • Constructor Detail

      • ApplicationPrincipal

        public ApplicationPrincipal​(String name)
    • Method Detail

      • getName

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

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

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

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