Class HOTPPrincipal
- java.lang.Object
-
- net.shibboleth.idp.authn.principal.HOTPPrincipal
-
- All Implemented Interfaces:
Cloneable,Principal,CloneablePrincipal
public class HOTPPrincipal extends Object implements CloneablePrincipal
Principal based on an HOTP authentication.- Since:
- 4.1.0
-
-
Constructor Summary
Constructors Constructor Description HOTPPrincipal(String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HOTPPrincipalclone()Creates and returns a copy of this object.booleanequals(Object other)StringgetName()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
HOTPPrincipal
public HOTPPrincipal(@Nonnull @NotEmpty @ParameterName(name="name") String name)
Constructor.- Parameters:
name- the username
-
-
Method Detail
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
clone
public HOTPPrincipal clone() throws CloneNotSupportedException
Creates and returns a copy of this object.- Specified by:
clonein interfaceCloneablePrincipal- Overrides:
clonein classObject- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException- if the instance cannot be cloned.- See Also:
Object.clone()
-
-