Class X509DataParser
java.lang.Object
org.keycloak.saml.common.parsers.AbstractStaxParser<T,XmlDSigQNames>
org.keycloak.saml.processing.core.parsers.saml.xmldsig.AbstractStaxXmlDSigParser<X509DataType>
org.keycloak.saml.processing.core.parsers.saml.xmldsig.X509DataParser
- All Implemented Interfaces:
StaxParser
Base Class for all Response Type parsing for SAML2
-
Field Summary
Fields inherited from class org.keycloak.saml.processing.core.parsers.saml.xmldsig.AbstractStaxXmlDSigParser
LOOKUPFields inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
expectedStartElement, LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic X509DataParserprotected X509DataTypeinstantiateElement(XMLEventReader xmlEventReader, StartElement element) Instantiates the target Java class representing the current element.
Precondition: Current event is theStartElement
Postcondition: Current event is theStartElementor theEndElementcorresponding to theStartElementprotected voidprocessSubElement(XMLEventReader xmlEventReader, X509DataType target, XmlDSigQNames element, StartElement elementDetail) Processes the subelement of the element processed inAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)method.
Precondition: Current event: Last before theStartElementcorresponding to the processed subelement, i.e.Methods inherited from class org.keycloak.saml.processing.core.parsers.saml.xmldsig.AbstractStaxXmlDSigParser
getElementFromNameMethods inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
isUnknownElement, parse, validateStartElement
-
Constructor Details
-
X509DataParser
public X509DataParser()
-
-
Method Details
-
getInstance
-
instantiateElement
protected X509DataType instantiateElement(XMLEventReader xmlEventReader, StartElement element) throws ParsingException Description copied from class:AbstractStaxParserInstantiates the target Java class representing the current element.
Precondition: Current event is theStartElement
Postcondition: Current event is theStartElementor theEndElementcorresponding to theStartElement- Specified by:
instantiateElementin classAbstractStaxParser<X509DataType,XmlDSigQNames> element- The XML event that was just read from thexmlEventReader- Returns:
- Throws:
ParsingException
-
processSubElement
protected void processSubElement(XMLEventReader xmlEventReader, X509DataType target, XmlDSigQNames element, StartElement elementDetail) throws ParsingException Description copied from class:AbstractStaxParserProcesses the subelement of the element processed inAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)method.
Precondition: Current event: Last before theStartElementcorresponding to the processed subelement, i.e. event obtained byIterator.next()is theStartElementof the subelement being processed
Postcondition: Event obtained byIterator.next()is either the sameStartElement(i.e. no change in position which causes this subelement to be skipped), the correspondingEndElement, or the event after the correspondingEndElement.Note that in case of recursive nesting the same element, the corresponding end element MUST be consumed in this method.
- Specified by:
processSubElementin classAbstractStaxParser<X509DataType,XmlDSigQNames> target- Target object (the one created by theAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)method.element- The constant corresponding to the current start element.elementDetail- The XML event that was just read from thexmlEventReader- Throws:
ParsingException
-