Class AuthnContextDeclRefPrincipal
- java.lang.Object
-
- net.shibboleth.idp.saml.authn.principal.AuthnContextDeclRefPrincipal
-
- All Implemented Interfaces:
Cloneable,Principal,CloneablePrincipal
public final class AuthnContextDeclRefPrincipal extends Object implements CloneablePrincipal
Principal based on a SAML AuthnContextDeclRef.
-
-
Field Summary
Fields Modifier and Type Field Description private StringauthnContextDeclRefThe decl ref.
-
Constructor Summary
Constructors Constructor Description AuthnContextDeclRefPrincipal(String declRef)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthnContextDeclRefPrincipalclone()Creates and returns a copy of this object.booleanequals(Object other)AuthnContextDeclRefgetAuthnContextDeclRef()Returns the value as a SAMLAuthnContextDeclRef.StringgetName()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
AuthnContextDeclRefPrincipal
public AuthnContextDeclRefPrincipal(@Nonnull @NotEmpty @ParameterName(name="declRef") String declRef)
Constructor.- Parameters:
declRef- the decl ref URI
-
-
Method Detail
-
getAuthnContextDeclRef
@Nonnull public AuthnContextDeclRef getAuthnContextDeclRef()
Returns the value as a SAMLAuthnContextDeclRef.- Returns:
- the principal value in the form of an
AuthnContextDeclRef
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
clone
public AuthnContextDeclRefPrincipal 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()
-
-