Class AbstractSignatureOutputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractOutputProcessor
org.apache.xml.security.stax.impl.processor.output.AbstractSignatureOutputProcessor
- All Implemented Interfaces:
OutputProcessor
- Direct Known Subclasses:
XMLSignatureOutputProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final List<SignaturePartDef>
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Transformer
buildTransformerChain
(OutputStream outputStream, SignaturePartDef signaturePartDef, XMLSecStartElement xmlSecStartElement) protected DigestOutputStream
createMessageDigestOutputStream
(String digestAlgorithm) protected void
digestExternalReference
(OutputProcessorChain outputProcessorChain, SecurePart securePart) void
doFinal
(OutputProcessorChain outputProcessorChain) Will be called when the whole document is processed.protected void
doFinalInternal
(OutputProcessorChain outputProcessorChain) abstract void
processEvent
(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) protected void
setActiveInternalSignatureOutputProcessor
(AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor) protected void
verifySignatureParts
(OutputProcessorChain outputProcessorChain) Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, init, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
-
Field Details
-
LOG
private static final transient org.slf4j.Logger LOG -
signaturePartDefList
-
activeInternalSignatureOutputProcessor
private AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor
-
-
Constructor Details
-
AbstractSignatureOutputProcessor
- Throws:
XMLSecurityException
-
-
Method Details
-
getSignaturePartDefList
-
processEvent
public abstract void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException - Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
XMLStreamException
XMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:OutputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceOutputProcessor
- Overrides:
doFinal
in classAbstractOutputProcessor
- Throws:
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
doFinalInternal
protected void doFinalInternal(OutputProcessorChain outputProcessorChain) throws XMLSecurityException, XMLStreamException -
digestExternalReference
protected void digestExternalReference(OutputProcessorChain outputProcessorChain, SecurePart securePart) throws XMLSecurityException, XMLStreamException -
verifySignatureParts
protected void verifySignatureParts(OutputProcessorChain outputProcessorChain) throws XMLSecurityException - Throws:
XMLSecurityException
-
getActiveInternalSignatureOutputProcessor
protected AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor getActiveInternalSignatureOutputProcessor() -
setActiveInternalSignatureOutputProcessor
protected void setActiveInternalSignatureOutputProcessor(AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor) -
createMessageDigestOutputStream
protected DigestOutputStream createMessageDigestOutputStream(String digestAlgorithm) throws XMLSecurityException - Throws:
XMLSecurityException
-
buildTransformerChain
protected Transformer buildTransformerChain(OutputStream outputStream, SignaturePartDef signaturePartDef, XMLSecStartElement xmlSecStartElement) throws XMLSecurityException - Throws:
XMLSecurityException
-