Class NameIDPrincipal
- java.lang.Object
-
- net.shibboleth.idp.saml.authn.principal.NameIDPrincipal
-
- All Implemented Interfaces:
Cloneable,Principal,CloneablePrincipal
public class NameIDPrincipal extends Object implements CloneablePrincipal
Principal based on the SAML2NameID.
-
-
Constructor Summary
Constructors Constructor Description NameIDPrincipal(NameID theNameID)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameIDPrincipalclone()Creates and returns a copy of this object.booleanequals(Object other)StringgetName()NameIDgetNameID()Get theNameID.inthashCode()
-
-
-
Constructor Detail
-
NameIDPrincipal
public NameIDPrincipal(@Nonnull @ParameterName(name="theNameID") NameID theNameID)
Constructor.- Parameters:
theNameID- the NameID which is wrapped.
-
-
Method Detail
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
clone
public NameIDPrincipal 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()
-
-