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 String
authnContextDeclRef
The decl ref.
-
Constructor Summary
Constructors Constructor Description AuthnContextDeclRefPrincipal(String declRef)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthnContextDeclRefPrincipal
clone()
Creates and returns a copy of this object.boolean
equals(Object other)
AuthnContextDeclRef
getAuthnContextDeclRef()
Returns the value as a SAMLAuthnContextDeclRef
.String
getName()
int
hashCode()
String
toString()
-
-
-
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:
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()
-
-