Package com.sun.identity.saml2.assertion
Interface AuthnContext
- All Superinterfaces:
XmlSerializable
The
AuthnContext element specifies the context of an
authentication event. The element can contain an authentication context
class reference, an authentication declaration or declaration reference,
or both. Its type is AuthnContextType.
<complexType name="AuthnContextType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<sequence>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContextClassRef"/>
<choice minOccurs="0">
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContextDecl"/>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContextDeclRef"/>
</choice>
</sequence>
<choice>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContextDecl"/>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthnContextDeclRef"/>
</choice>
</choice>
<element ref="{urn:oasis:names:tc:SAML:2.0:assertion}
AuthenticatingAuthority" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theAuthenticatingAuthorityproperty.Returns the value of theAuthnContextClassRefproperty.Returns the value of theAuthnContextDeclproperty.Returns the value of theAuthnContextDeclRefproperty.booleanReturns the mutability of the object.voidMakes the object immutable.voidsetAuthenticatingAuthority(List<String> value) Sets the value of theAuthenticatingAuthorityproperty.voidsetAuthnContextClassRef(String value) Sets the value of theAuthnContextClassRefproperty.voidsetAuthnContextDecl(String value) Sets the value of theAuthnContextDeclproperty.voidsetAuthnContextDeclRef(String value) Sets the value of theAuthnContextDeclRefproperty.Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
makeImmutable
void makeImmutable()Makes the object immutable. -
isMutable
boolean isMutable()Returns the mutability of the object.- Returns:
trueif the object is mutable;falseotherwise.
-
getAuthnContextClassRef
String getAuthnContextClassRef()Returns the value of theAuthnContextClassRefproperty.- Returns:
- the value of the
AuthnContextClassRef. - See Also:
-
setAuthnContextClassRef
Sets the value of theAuthnContextClassRefproperty.- Parameters:
value- newAuthenticationContextClassRef.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getAuthnContextDeclRef
String getAuthnContextDeclRef()Returns the value of theAuthnContextDeclRefproperty.- Returns:
- A String representing authentication context declaration reference.
- See Also:
-
setAuthnContextDeclRef
Sets the value of theAuthnContextDeclRefproperty.- Parameters:
value- A String representation of authentication context declaration reference.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getAuthnContextDecl
String getAuthnContextDecl()Returns the value of theAuthnContextDeclproperty.- Returns:
- An XML String representing authentication context declaration.
- See Also:
-
setAuthnContextDecl
Sets the value of theAuthnContextDeclproperty.- Parameters:
value- An xml String representing authentication context declaration.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
setAuthenticatingAuthority
void setAuthenticatingAuthority(List<String> value) throws com.sun.identity.saml2.common.SAML2Exception Sets the value of theAuthenticatingAuthorityproperty.- Parameters:
value- List of Strings representing authenticating authority- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getAuthenticatingAuthority
Returns the value of theAuthenticatingAuthorityproperty.- Returns:
- List of Strings representing
AuthenticatingAuthority. - See Also:
-