public abstract class AbstractDecryptInputProcessor extends AbstractInputProcessor
Modifier and Type | Class and Description |
---|---|
class |
AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and
forwards the generated XMLEvents
|
Modifier and Type | Field and Description |
---|---|
protected static Integer |
maximumAllowedEncryptedDataEvents |
protected static Integer |
maximumAllowedXMLStructureDepth |
Constructor and Description |
---|
AbstractDecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType,
org.apache.xml.security.binding.xmlenc.ReferenceList referenceList,
XMLSecurityProperties securityProperties) |
AbstractDecryptInputProcessor(XMLSecurityProperties securityProperties) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType,
InputStream inputStream) |
void |
doFinal(InputProcessorChain inputProcessorChain)
Will be called when the whole document is processed.
|
List<org.apache.xml.security.binding.xmlenc.ReferenceType> |
getProcessedReferences() |
Map<String,org.apache.xml.security.binding.xmlenc.ReferenceType> |
getReferences() |
protected abstract void |
handleCipherReference(InputProcessorChain inputProcessorChain,
org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType,
Cipher cipher,
InboundSecurityToken inboundSecurityToken) |
protected abstract void |
handleEncryptedContent(InputProcessorChain inputProcessorChain,
XMLSecStartElement parentXMLSecStartElement,
InboundSecurityToken inboundSecurityToken,
org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) |
protected abstract void |
handleSecurityToken(InboundSecurityToken inboundSecurityToken,
InboundSecurityContext inboundSecurityContext,
org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) |
protected abstract InputStream |
handleXOPInclude(InputProcessorChain inputProcessorChain,
org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType,
String href,
Cipher cipher,
InboundSecurityToken inboundSecurityToken) |
protected org.apache.xml.security.binding.xmlenc.ReferenceType |
matchesReferenceId(XMLSecStartElement xmlSecStartElement) |
protected abstract AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor |
newDecryptedEventReaderInputProcessor(boolean encryptedHeader,
XMLSecStartElement xmlSecStartElement,
org.apache.xml.security.binding.xmlenc.EncryptedDataType currentEncryptedDataType,
InboundSecurityToken inboundSecurityToken,
InboundSecurityContext inboundSecurityContext) |
XMLSecEvent |
processEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next XMLEvent is requested
|
XMLSecEvent |
processHeaderEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next security-header XMLEvent is requested
|
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
protected static final Integer maximumAllowedXMLStructureDepth
protected static final Integer maximumAllowedEncryptedDataEvents
public AbstractDecryptInputProcessor(XMLSecurityProperties securityProperties) throws XMLSecurityException
XMLSecurityException
public AbstractDecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType, org.apache.xml.security.binding.xmlenc.ReferenceList referenceList, XMLSecurityProperties securityProperties) throws XMLSecurityException
XMLSecurityException
public Map<String,org.apache.xml.security.binding.xmlenc.ReferenceType> getReferences()
public List<org.apache.xml.security.binding.xmlenc.ReferenceType> getProcessedReferences()
public XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurspublic XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occursprotected InputStream applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream) throws XMLSecurityException
XMLSecurityException
protected abstract AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, org.apache.xml.security.binding.xmlenc.EncryptedDataType currentEncryptedDataType, InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException
XMLSecurityException
protected abstract void handleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) throws XMLSecurityException
XMLSecurityException
protected abstract void handleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) throws XMLSecurityException
XMLSecurityException
protected abstract void handleCipherReference(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException
XMLSecurityException
protected abstract InputStream handleXOPInclude(InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, String href, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException
XMLSecurityException
protected org.apache.xml.security.binding.xmlenc.ReferenceType matchesReferenceId(XMLSecStartElement xmlSecStartElement)
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessor
doFinal
in interface InputProcessor
doFinal
in class AbstractInputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occursCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.