Class AuthnContextDeclPrincipal
java.lang.Object
net.shibboleth.idp.saml.authn.principal.AuthnContextDeclPrincipal
- All Implemented Interfaces:
Cloneable
,Principal
,CloneablePrincipal
public final class AuthnContextDeclPrincipal extends Object implements CloneablePrincipal
Principal based on a SAML AuthnContextDecl.
-
Field Summary
Fields Modifier and Type Field Description private AuthnContextDecl
authnContextDecl
The declaration.private String
name
Serialized form of declaration. -
Constructor Summary
Constructors Constructor Description AuthnContextDeclPrincipal(AuthnContextDecl decl)
Constructor. -
Method Summary
Modifier and Type Method Description AuthnContextDeclPrincipal
clone()
Creates and returns a copy of this object.boolean
equals(Object other)
AuthnContextDecl
getAuthnContextDecl()
Returns the value as a SAMLAuthnContextDecl
.String
getName()
int
hashCode()
String
toString()
-
Field Details
-
authnContextDecl
The declaration. -
name
Serialized form of declaration.
-
-
Constructor Details
-
AuthnContextDeclPrincipal
public AuthnContextDeclPrincipal(@Nonnull @ParameterName(name="decl") AuthnContextDecl decl) throws MarshallingExceptionConstructor.- Parameters:
decl
- the declaration- Throws:
MarshallingException
- if an error occurs marshalling the declaration into string form
-
-
Method Details
-
getName
-
getAuthnContextDecl
Returns the value as a SAMLAuthnContextDecl
.- Returns:
- the principal value in the form of an
AuthnContextDecl
-
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()
-