Class FederationPrincipal

    • Constructor Detail

      • FederationPrincipal

        public FederationPrincipal​(String name)
    • Method Detail

      • getName

        public String getName()
        Return the LDAP username for this FederationPrincipal.

        Specified by:
        getName in interface Principal
        Returns:
        the LDAP username for this FederationPrincipal
      • toString

        public String toString()
        Return a string representation of this FederationPrincipal.

        Specified by:
        toString in interface Principal
        Overrides:
        toString in class Object
        Returns:
        a string representation of this FederationPrincipal.
      • equals

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

        public int hashCode()
        Return a hash code for this FederationPrincipal.

        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class Object
        Returns:
        a hash code for this FederationPrincipal.