Class HOTPPrincipal
- java.lang.Object
-
- com.sun.identity.authentication.modules.hotp.HOTPPrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public class HOTPPrincipal extends Object implements Principal, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HOTPPrincipal(String name)Public constructor that takes user name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the specified Object with thisHOTPPrincipalfor equality.StringgetName()Returns the HOTP username for thisHOTPPrincipal.inthashCode()Returns a hash code for thisHOTPPrincipal.StringtoString()Returns a string representation of thisHOTPPrincipal.
-
-
-
Constructor Detail
-
HOTPPrincipal
public HOTPPrincipal(String name)
Public constructor that takes user name
-
-
Method Detail
-
getName
public String getName()
Returns the HOTP username for thisHOTPPrincipal.
-
toString
public String toString()
Returns a string representation of thisHOTPPrincipal.
-
equals
public boolean equals(Object o)
Compares the specified Object with thisHOTPPrincipalfor equality. Returns true if the given object is also aHOTPPrincipaland the two HOTPPrincipals have the same username.
-
-