public interface AuthnContext
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>
Modifier and Type | Method and Description |
---|---|
List<String> |
getAuthenticatingAuthority()
Returns the value of the
AuthenticatingAuthority property. |
String |
getAuthnContextClassRef()
Returns the value of the
AuthnContextClassRef property. |
String |
getAuthnContextDecl()
Returns the value of the
AuthnContextDecl property. |
String |
getAuthnContextDeclRef()
Returns the value of the
AuthnContextDeclRef property. |
boolean |
isMutable()
Returns the mutability of the object.
|
void |
makeImmutable()
Makes the object immutable.
|
void |
setAuthenticatingAuthority(List<String> value)
Sets the value of the
AuthenticatingAuthority property. |
void |
setAuthnContextClassRef(String value)
Sets the value of the
AuthnContextClassRef property. |
void |
setAuthnContextDecl(String value)
Sets the value of the
AuthnContextDecl property. |
void |
setAuthnContextDeclRef(String value)
Sets the value of the
AuthnContextDeclRef property. |
String |
toXMLString()
Returns a String representation of the element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the element.
|
void makeImmutable()
boolean isMutable()
true
if the object is mutable;
false
otherwise.String getAuthnContextClassRef()
AuthnContextClassRef
property.AuthnContextClassRef
.AuthnContext.setAuthnContextClassRef(String)
void setAuthnContextClassRef(String value) throws SAML2Exception
AuthnContextClassRef
property.value
- new AuthenticationContextClassRef
.SAML2Exception
- if the object is immutable.AuthnContext.getAuthnContextClassRef()
String getAuthnContextDeclRef()
AuthnContextDeclRef
property.AuthnContext.setAuthnContextDeclRef(String)
void setAuthnContextDeclRef(String value) throws SAML2Exception
AuthnContextDeclRef
property.value
- A String representation of authentication context
declaration reference.SAML2Exception
- if the object is immutable.AuthnContext.getAuthnContextDeclRef()
String getAuthnContextDecl()
AuthnContextDecl
property.AuthnContext.setAuthnContextDecl(String)
void setAuthnContextDecl(String value) throws SAML2Exception
AuthnContextDecl
property.value
- An xml String representing authentication context
declaration.SAML2Exception
- if the object is immutable.AuthnContext.getAuthnContextDecl()
void setAuthenticatingAuthority(List<String> value) throws SAML2Exception
AuthenticatingAuthority
property.value
- List of Strings representing authenticating authoritySAML2Exception
- if the object is immutable.AuthnContext.getAuthenticatingAuthority()
List<String> getAuthenticatingAuthority()
AuthenticatingAuthority
property.AuthenticatingAuthority
.AuthnContext.setAuthenticatingAuthority(List)
String toXMLString() throws SAML2Exception
SAML2Exception
- if the object does not conform to the schema.String toXMLString(boolean includeNS, boolean declareNS) throws SAML2Exception
includeNS
- Determines whether or not the namespace qualifier is
prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.SAML2Exception
- if the object does not conform to the schema.Copyright © 2010-2018, ForgeRock All Rights Reserved.