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
All Methods Instance Methods Concrete Methods 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()
-
-
-
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:
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()
-
-