Class SAMLArtifactResolveParser
java.lang.Object
org.keycloak.saml.common.parsers.AbstractStaxParser<T,SAMLProtocolQNames>
org.keycloak.saml.processing.core.parsers.saml.protocol.AbstractStaxSamlProtocolParser<T>
org.keycloak.saml.processing.core.parsers.saml.protocol.SAMLRequestAbstractParser<ArtifactResolveType>
org.keycloak.saml.processing.core.parsers.saml.protocol.SAMLArtifactResolveParser
- All Implemented Interfaces:
StaxParser
Parse the
ArtifactResolveType- Since:
- Jul 1, 2011
-
Field Summary
Fields inherited from class org.keycloak.saml.processing.core.parsers.saml.protocol.SAMLRequestAbstractParser
VERSION_2_0Fields inherited from class org.keycloak.saml.processing.core.parsers.saml.protocol.AbstractStaxSamlProtocolParser
LOOKUPFields inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
expectedStartElement, LOGGER -
Method Summary
Modifier and TypeMethodDescriptionstatic SAMLArtifactResolveParserprotected ArtifactResolveTypeinstantiateElement(XMLEventReader xmlEventReader, StartElement startElement) Parse the attributes at the authnrequesttype elementprotected voidprocessSubElement(XMLEventReader xmlEventReader, ArtifactResolveType target, SAMLProtocolQNames 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.protocol.SAMLRequestAbstractParser
parseBaseAttributes, parseCommonElementsMethods inherited from class org.keycloak.saml.processing.core.parsers.saml.protocol.AbstractStaxSamlProtocolParser
getElementFromNameMethods inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
isUnknownElement, parse, validateStartElement
-
Method Details
-
getInstance
-
instantiateElement
protected ArtifactResolveType instantiateElement(XMLEventReader xmlEventReader, StartElement startElement) throws ParsingException Parse the attributes at the authnrequesttype element- Specified by:
instantiateElementin classAbstractStaxParser<ArtifactResolveType,SAMLProtocolQNames> - Parameters:
startElement-- Returns:
- Throws:
ParsingException
-
processSubElement
protected void processSubElement(XMLEventReader xmlEventReader, ArtifactResolveType target, SAMLProtocolQNames 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<ArtifactResolveType,SAMLProtocolQNames> 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
-