Class HOTPPrincipal

    • Constructor Detail

      • HOTPPrincipal

        public HOTPPrincipal​(String name)
        Public constructor that takes user name
    • Method Detail

      • getName

        public String getName()
        Returns the HOTP username for this HOTPPrincipal.

        Specified by:
        getName in interface Principal
        Returns:
        the HOTP username for this HOTPPrincipal
      • toString

        public String toString()
        Returns a string representation of this HOTPPrincipal.

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

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

        public int hashCode()
        Returns a hash code for this HOTPPrincipal.

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