Class NameIdentifierPrincipal
- java.lang.Object
-
- net.shibboleth.idp.saml.authn.principal.NameIdentifierPrincipal
-
- All Implemented Interfaces:
Cloneable,Principal,CloneablePrincipal
public class NameIdentifierPrincipal extends Object implements CloneablePrincipal
Principal based on the SAML2NameIdentifier.
-
-
Field Summary
Fields Modifier and Type Field Description private StringnameSerialized form of nameIdenitifier .private NameIdentifiernameIdentifierThe NameIdentifier.
-
Constructor Summary
Constructors Constructor Description NameIdentifierPrincipal(NameIdentifier theNameIdentifier)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameIdentifierPrincipalclone()Creates and returns a copy of this object.booleanequals(Object other)StringgetName()NameIdentifiergetNameIdentifier()Get theNameIdentifier.inthashCode()
-
-
-
Field Detail
-
nameIdentifier
@Nonnull private NameIdentifier nameIdentifier
The NameIdentifier.
-
-
Constructor Detail
-
NameIdentifierPrincipal
public NameIdentifierPrincipal(@Nonnull @ParameterName(name="theNameIdentifier") NameIdentifier theNameIdentifier)
Constructor.- Parameters:
theNameIdentifier- the NameIdentifier which is wrapped.
-
-
Method Detail
-
getNameIdentifier
@Nonnull public NameIdentifier getNameIdentifier()
Get theNameIdentifier.- Returns:
- the nameIdentifier
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
clone
public NameIdentifierPrincipal 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()
-
-