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.Loggerprivate final List<SignaturePartDef> Fields inherited from class AbstractOutputProcessor
action, securityProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TransformerbuildTransformerChain(OutputStream outputStream, SignaturePartDef signaturePartDef, XMLSecStartElement xmlSecStartElement) protected DigestOutputStreamcreateMessageDigestOutputStream(String digestAlgorithm) protected voiddigestExternalReference(OutputProcessorChain outputProcessorChain, SecurePart securePart) voiddoFinal(OutputProcessorChain outputProcessorChain) Will be called when the whole document is processed.protected voiddoFinalInternal(OutputProcessorChain outputProcessorChain) abstract voidprocessEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) protected voidsetActiveInternalSignatureOutputProcessor(AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor activeInternalSignatureOutputProcessor) protected voidverifySignatureParts(OutputProcessorChain outputProcessorChain) Methods inherited from class 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:
processEventin classAbstractOutputProcessor- Throws:
XMLStreamExceptionXMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException Description copied from interface:OutputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceOutputProcessor- Overrides:
doFinalin classAbstractOutputProcessor- Parameters:
outputProcessorChain-- 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
-