Class XMLDecryptInputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractInputProcessor
org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
org.apache.xml.security.stax.impl.processor.input.XMLDecryptInputProcessor
- All Implemented Interfaces:
InputProcessor
Processor for decryption of EncryptedData XML structures
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and forwards the generated XMLEventsNested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor, AbstractDecryptInputProcessor.DecryptionThread
-
Field Summary
Fields inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
maximumAllowedEncryptedDataEvents, maximumAllowedXMLStructureDepth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleCipherReference
(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) protected void
handleEncryptedContent
(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) protected void
handleSecurityToken
(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, EncryptedDataType encryptedDataType) protected InputStream
handleXOPInclude
(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, String href, Cipher cipher, InboundSecurityToken inboundSecurityToken) newDecryptedEventReaderInputProcessor
(boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, EncryptedDataType currentEncryptedDataType, InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext) Methods inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
applyTransforms, doFinal, getProcessedReferences, getReferences, matchesReferenceId, processNextEvent, processNextHeaderEvent
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Constructor Details
-
XMLDecryptInputProcessor
public XMLDecryptInputProcessor(XMLSecurityProperties securityProperties) throws XMLSecurityException - Throws:
XMLSecurityException
-
-
Method Details
-
newDecryptedEventReaderInputProcessor
protected AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, EncryptedDataType currentEncryptedDataType, InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException - Specified by:
newDecryptedEventReaderInputProcessor
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
handleSecurityToken
protected void handleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, EncryptedDataType encryptedDataType) throws XMLSecurityException - Specified by:
handleSecurityToken
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
handleEncryptedContent
protected void handleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) throws XMLSecurityException - Specified by:
handleEncryptedContent
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
handleCipherReference
protected void handleCipherReference(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException - Specified by:
handleCipherReference
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
handleXOPInclude
protected InputStream handleXOPInclude(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, String href, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException - Specified by:
handleXOPInclude
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-