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 TypeClassDescriptionclassThe DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and forwards the generated XMLEventsNested classes/interfaces inherited from class AbstractDecryptInputProcessor
AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor, AbstractDecryptInputProcessor.DecryptionThread -
Field Summary
Fields inherited from class AbstractDecryptInputProcessor
maximumAllowedEncryptedDataEvents, maximumAllowedXMLStructureDepth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleCipherReference(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) protected voidhandleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) protected voidhandleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, EncryptedDataType encryptedDataType) protected InputStreamhandleXOPInclude(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 AbstractDecryptInputProcessor
applyTransforms, doFinal, getProcessedReferences, getReferences, matchesReferenceId, processNextEvent, processNextHeaderEventMethods inherited from class 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:
newDecryptedEventReaderInputProcessorin classAbstractDecryptInputProcessor- Throws:
XMLSecurityException
-
handleSecurityToken
protected void handleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, EncryptedDataType encryptedDataType) throws XMLSecurityException - Specified by:
handleSecurityTokenin classAbstractDecryptInputProcessor- Throws:
XMLSecurityException
-
handleEncryptedContent
protected void handleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) throws XMLSecurityException - Specified by:
handleEncryptedContentin classAbstractDecryptInputProcessor- Throws:
XMLSecurityException
-
handleCipherReference
protected void handleCipherReference(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException - Specified by:
handleCipherReferencein classAbstractDecryptInputProcessor- Throws:
XMLSecurityException
-
handleXOPInclude
protected InputStream handleXOPInclude(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, String href, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException - Specified by:
handleXOPIncludein classAbstractDecryptInputProcessor- Throws:
XMLSecurityException
-