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 String
authnContextClassRef
The class ref. -
Constructor Summary
Constructors Constructor Description AuthnContextClassRefPrincipal(String classRef)
Constructor. -
Method Summary
Modifier and Type Method Description AuthnContextClassRefPrincipal
clone()
Creates and returns a copy of this object.boolean
equals(Object other)
AuthnContextClassRef
getAuthnContextClassRef()
Returns the value as a SAMLAuthnContextClassRef
.String
getName()
int
hashCode()
String
toString()
-
Field Details
-
authnContextClassRef
The class ref.
-
-
Constructor Details
-
AuthnContextClassRefPrincipal
public AuthnContextClassRefPrincipal(@Nonnull @NotEmpty @ParameterName(name="classRef") String classRef)Constructor.- Parameters:
classRef
- the class reference URI
-
-
Method Details
-
getName
-
getAuthnContextClassRef
Returns the value as a SAMLAuthnContextClassRef
.- Returns:
- the principal value in the form of an
AuthnContextClassRef
-
hashCode
public int hashCode() -
equals
-
toString
-
clone
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()
-