Class SecurIDPrincipal

    • Constructor Detail

      • SecurIDPrincipal

        public SecurIDPrincipal​(String name)
    • Method Detail

      • getName

        public String getName()
        Return the SecurID username for this SecurIDPrincipal.

        Specified by:
        getName in interface Principal
        Returns:
        the SecurID username for this SecurIDPrincipal
      • toString

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

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

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

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

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