public abstract class AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor extends AbstractOutputProcessor
action, securityProperties
Constructor and Description |
---|
AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef,
XMLSecStartElement xmlSecStartElement,
String encoding) |
Modifier and Type | Method and Description |
---|---|
protected OutputStream |
applyTransforms(OutputStream outputStream) |
protected abstract void |
createKeyInfoStructure(OutputProcessorChain outputProcessorChain) |
protected void |
doFinalInternal(OutputProcessorChain outputProcessorChain) |
String |
getEncoding() |
protected EncryptionPartDef |
getEncryptionPartDef() |
protected XMLSecStartElement |
getXmlSecStartElement() |
void |
init(OutputProcessorChain outputProcessorChain)
Method will be called after setting the properties
|
void |
processEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
Will be called from the framework for every XMLEvent
|
protected void |
processEventInternal(XMLSecStartElement xmlSecStartElement,
OutputProcessorChain outputProcessorChain)
Creates the Data structure around the cipher data
|
void |
setEncoding(String encoding) |
protected void |
setEncryptionPartDef(EncryptionPartDef encryptionPartDef) |
protected void |
setXmlSecStartElement(XMLSecStartElement xmlSecStartElement) |
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, doFinal, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, outputAsEvent, outputDOMElement, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
public AbstractInternalEncryptionOutputProcessor(EncryptionPartDef encryptionPartDef, XMLSecStartElement xmlSecStartElement, String encoding) throws XMLSecurityException
XMLSecurityException
public void init(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
OutputProcessor
init
in interface OutputProcessor
init
in class AbstractOutputProcessor
XMLSecurityException
protected OutputStream applyTransforms(OutputStream outputStream) throws XMLSecurityException
XMLSecurityException
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
OutputProcessor
xmlSecEvent
- The next XMLEvent to processXMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occursprotected void processEventInternal(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
protected abstract void createKeyInfoStructure(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
protected void doFinalInternal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
protected EncryptionPartDef getEncryptionPartDef()
protected void setEncryptionPartDef(EncryptionPartDef encryptionPartDef)
protected XMLSecStartElement getXmlSecStartElement()
protected void setXmlSecStartElement(XMLSecStartElement xmlSecStartElement)
public String getEncoding()
public void setEncoding(String encoding)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.