public class RequestedAuthnContextImpl extends Object implements RequestedAuthnContext
The following schema fragment specifies the expected content contained within this java content object.
<complexType name="RequestedAuthnContextType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextClassRef" maxOccurs="unbounded"/> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextDeclRef" maxOccurs="unbounded"/> </choice> <attribute name="Comparison" type="{urn:oasis:names:tc:SAML:2.0:protocol}AuthnContextComparisonType" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
String |
elementName |
Constructor and Description |
---|
RequestedAuthnContextImpl()
Constructor
|
RequestedAuthnContextImpl(Element element)
Constructor
|
RequestedAuthnContextImpl(String xmlString)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List |
getAuthnContextClassRef()
Returns the value of AuthnContextClassRef property.
|
List |
getAuthnContextDeclRef()
Returns List of String representing authentication context
declaration reference.
|
String |
getComparison()
Returns the value of comparison property.
|
boolean |
isMutable()
Returns true if the object is mutable
|
void |
makeImmutable()
Makes the obejct immutable
|
void |
setAuthnContextClassRef(List value)
Sets the value of AuthnContextClassRef property.
|
void |
setAuthnContextDeclRef(List value)
Sets the value of the
AuthnContextDeclRef property. |
void |
setComparison(String value)
Sets the value of the comparison property.
|
String |
toXMLString()
Returns an XML Representation of this object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Converts into an XML String.
|
public final String elementName
public RequestedAuthnContextImpl()
public RequestedAuthnContextImpl(Element element) throws SAML2Exception
element
- the Document Element.SAML2Exception
- if there is an error creating this object.public RequestedAuthnContextImpl(String xmlString) throws SAML2Exception
xmlString
- the RequestedAuthnContext
XML String.SAML2Exception
- if there is an error creating this object.public List getAuthnContextClassRef()
getAuthnContextClassRef
in interface RequestedAuthnContext
setAuthnContextClassRef(List)
public void setAuthnContextClassRef(List value) throws SAML2Exception
setAuthnContextClassRef
in interface RequestedAuthnContext
value
- List of String representing authentication context
class referance.SAML2Exception
- if the object is immutable.getAuthnContextClassRef()
public List getAuthnContextDeclRef()
getAuthnContextDeclRef
in interface RequestedAuthnContext
setAuthnContextDeclRef(List)
public void setAuthnContextDeclRef(List value) throws SAML2Exception
AuthnContextDeclRef
property.setAuthnContextDeclRef
in interface RequestedAuthnContext
value
- List of String representing authentication context
declaration referance.SAML2Exception
- if the object is immutable.getAuthnContextDeclRef()
public String getComparison()
getComparison
in interface RequestedAuthnContext
setComparison(String)
public void setComparison(String value) throws SAML2Exception
setComparison
in interface RequestedAuthnContext
value
- An String representing comparison method.SAML2Exception
- if the object is immutable.getComparison()
public String toXMLString() throws SAML2Exception
toXMLString
in interface RequestedAuthnContext
SAML2Exception
- if unable to get the XML string.public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface RequestedAuthnContext
includeNSPrefix
- 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 unable to get the XML string.public void makeImmutable()
makeImmutable
in interface RequestedAuthnContext
public boolean isMutable()
isMutable
in interface RequestedAuthnContext
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.