Class SAMLRoleDecriptorTypeParser<T extends RoleDescriptorType>
java.lang.Object
org.keycloak.saml.common.parsers.AbstractStaxParser<T,SAMLMetadataQNames>
org.keycloak.saml.processing.core.parsers.saml.metadata.AbstractStaxSamlMetadataParser<T>
org.keycloak.saml.processing.core.parsers.saml.metadata.SAMLRoleDecriptorTypeParser<T>
- All Implemented Interfaces:
StaxParser
- Direct Known Subclasses:
SAMLAttributeAuthorityDescriptorParser
,SAMLAuthnAuthorityDescriptorParser
,SAMLPDPDescriptorParser
,SAMLSSODescriptorTypeParser
public abstract class SAMLRoleDecriptorTypeParser<T extends RoleDescriptorType>
extends AbstractStaxSamlMetadataParser<T>
- Author:
- mhajas
-
Field Summary
Fields inherited from class org.keycloak.saml.processing.core.parsers.saml.metadata.AbstractStaxSamlMetadataParser
LOOKUP
Fields inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
expectedStartElement, LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
parseOptionalArguments
(StartElement element, RoleDescriptorType descriptor) protected void
processSubElement
(XMLEventReader xmlEventReader, T target, SAMLMetadataQNames 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 theStartElement
corresponding to the processed subelement, i.e.Methods inherited from class org.keycloak.saml.processing.core.parsers.saml.metadata.AbstractStaxSamlMetadataParser
getElementFromName
Methods inherited from class org.keycloak.saml.common.parsers.AbstractStaxParser
instantiateElement, isUnknownElement, parse, validateStartElement
-
Constructor Details
-
SAMLRoleDecriptorTypeParser
-
-
Method Details
-
parseOptionalArguments
protected void parseOptionalArguments(StartElement element, RoleDescriptorType descriptor) throws ParsingException - Throws:
ParsingException
-
processSubElement
protected void processSubElement(XMLEventReader xmlEventReader, T target, SAMLMetadataQNames element, StartElement elementDetail) throws ParsingException Description copied from class:AbstractStaxParser
Processes the subelement of the element processed inAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)
method.
Precondition: Current event: Last before theStartElement
corresponding to the processed subelement, i.e. event obtained byIterator.next()
is theStartElement
of 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:
processSubElement
in classAbstractStaxParser<T extends RoleDescriptorType,
SAMLMetadataQNames> 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
-