Package net.shibboleth.idp.authn.duo
Class DuoPrincipal
- java.lang.Object
-
- net.shibboleth.idp.authn.duo.DuoPrincipal
-
- All Implemented Interfaces:
Cloneable
,Principal
,CloneablePrincipal
public class DuoPrincipal extends Object implements CloneablePrincipal
Principal based on a Duo authentication.
-
-
Constructor Summary
Constructors Constructor Description DuoPrincipal(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuoPrincipal
clone()
Creates and returns a copy of this object.boolean
equals(Object other)
String
getName()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DuoPrincipal
public DuoPrincipal(@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 DuoPrincipal clone() throws CloneNotSupportedException
Creates and returns a copy of this object.- Specified by:
clone
in interfaceCloneablePrincipal
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the instance cannot be cloned.- See Also:
Object.clone()
-
-