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
public class XMLDecryptInputProcessor extends AbstractDecryptInputProcessor
Processor for decryption of EncryptedData XML structures
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
XMLDecryptInputProcessor.DecryptedEventReaderInputProcessor
The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and forwards the generated XMLEvents-
Nested 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 Constructor Description XMLDecryptInputProcessor(XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleCipherReference(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, javax.crypto.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 java.io.InputStream
handleXOPInclude(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, java.lang.String href, javax.crypto.Cipher cipher, InboundSecurityToken inboundSecurityToken)
protected AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
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 Detail
-
XMLDecryptInputProcessor
public XMLDecryptInputProcessor(XMLSecurityProperties securityProperties) throws XMLSecurityException
- Throws:
XMLSecurityException
-
-
Method Detail
-
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, javax.crypto.Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException
- Specified by:
handleCipherReference
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
handleXOPInclude
protected java.io.InputStream handleXOPInclude(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, java.lang.String href, javax.crypto.Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException
- Specified by:
handleXOPInclude
in classAbstractDecryptInputProcessor
- Throws:
XMLSecurityException
-
-