Class SAMLAuthContext
java.lang.Object
se.swedenconnect.cert.extensions.data.saci.AbstractDomData
se.swedenconnect.cert.extensions.data.saci.SAMLAuthContext
DOM based implementation of SAMLAuthContext for the AuhtnContext extension RFC 7773
- 
Field SummaryFields inherited from class se.swedenconnect.cert.extensions.data.saci.AbstractDomDataSACI_NS, SAML_ASSERTION_NS, strictMode, XML_DATE_TIME_FORMATTER
- 
Constructor SummaryConstructorsConstructorDescriptionSAMLAuthContext(boolean strictMode) Creates a new empty SAMLAuthContext objectSAMLAuthContext(String xml, boolean strictMode) Creates a SAMLAuthContext object from XML textSAMLAuthContext(Document document, boolean strictMode) Creates a SAMLAuthContext object from an XML document
- 
Method SummaryModifier and TypeMethodDescriptionBuilds a new document for SAMLAuthContextprotected ElementgetElement(Document owner) Gets a DOM element from the element data fieldsprotected voidsetValuesFromElement(Element element) Creates an instance of this elements data from a DOM elementprotected voidvalidate()Validates the data fields of this object to assert that it meets basic content requirementsMethods inherited from class se.swedenconnect.cert.extensions.data.saci.AbstractDomDataadoptAttributes, adoptElements, getAttributeValue, getAttributeValue, getElements, getOtherAttributes, getSingleElement, instantToString, parseTime, setAttribute, setAttribute
- 
Constructor Details- 
SAMLAuthContextpublic SAMLAuthContext(boolean strictMode) Creates a new empty SAMLAuthContext object- Parameters:
- strictMode- true to strictly enforce content requirement rules
 
- 
SAMLAuthContextCreates a SAMLAuthContext object from an XML document- Parameters:
- document- document holding SAMLAuthContext data
- strictMode- true to strictly enforce content requirement rules
- Throws:
- CertificateException- content validation errors
 
- 
SAMLAuthContextpublic SAMLAuthContext(String xml, boolean strictMode) throws IOException, ParserConfigurationException, SAXException, CertificateException Creates a SAMLAuthContext object from XML text- Parameters:
- xml- xml text source
- strictMode- true to strictly enforce content requirement rules
- Throws:
- IOException- errors parsing xml content
- ParserConfigurationException- errors parsing xml content
- SAXException- errors parsing xml content
- CertificateException- content validation errors
 
 
- 
- 
Method Details- 
validateValidates the data fields of this object to assert that it meets basic content requirements- Specified by:
- validatein class- AbstractDomData
- Throws:
- CertificateException- validation errors
 
- 
getDocumentBuilds a new document for SAMLAuthContext- Returns:
- SAMLAuthContext XML document
 
- 
getElementGets a DOM element from the element data fields- Specified by:
- getElementin class- AbstractDomData
- Parameters:
- owner- the document this element shall belong to
- Returns:
- DOM element populated with the field data of this object
 
- 
setValuesFromElementCreates an instance of this elements data from a DOM element- Specified by:
- setValuesFromElementin class- AbstractDomData
- Parameters:
- element- xml element providing content data
- Throws:
- CertificateException- content validation error
 
 
-