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