Class DecryptInputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
-
- org.apache.wss4j.stax.impl.processor.input.DecryptInputProcessor
-
- All Implemented Interfaces:
org.apache.xml.security.stax.ext.InputProcessor
public class DecryptInputProcessor extends org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
Processor for decryption of EncryptedData XML structures
-
-
Constructor Summary
Constructors Constructor Description DecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType, org.apache.xml.security.binding.xmlenc.ReferenceList referenceList, WSSSecurityProperties securityProperties, WSInboundSecurityContext securityContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InputStream
applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream)
void
doFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain)
protected void
handleCipherReference(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, Cipher cipher, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken)
protected void
handleEncryptedContent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.stax.ext.stax.XMLSecStartElement parentStartXMLEvent, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
protected void
handleSecurityToken(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType)
protected InputStream
handleXOPInclude(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, String href, Cipher cipher, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken)
protected org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
newDecryptedEventReaderInputProcessor(boolean encryptedHeader, org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext)
-
Methods inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
getProcessedReferences, getReferences, matchesReferenceId, processEvent, processHeaderEvent
-
-
-
-
Constructor Detail
-
DecryptInputProcessor
public DecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType, org.apache.xml.security.binding.xmlenc.ReferenceList referenceList, WSSSecurityProperties securityProperties, WSInboundSecurityContext securityContext) throws org.apache.xml.security.exceptions.XMLSecurityException
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
-
Method Detail
-
applyTransforms
protected InputStream applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream) throws org.apache.xml.security.exceptions.XMLSecurityException
- Overrides:
applyTransforms
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
handleEncryptedContent
protected void handleEncryptedContent(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.stax.ext.stax.XMLSecStartElement parentStartXMLEvent, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
handleEncryptedContent
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
handleCipherReference
protected void handleCipherReference(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, Cipher cipher, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken) throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
handleCipherReference
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
handleXOPInclude
protected InputStream handleXOPInclude(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, String href, Cipher cipher, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken) throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
handleXOPInclude
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
newDecryptedEventReaderInputProcessor
protected org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType, org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext) throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
newDecryptedEventReaderInputProcessor
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
handleSecurityToken
protected void handleSecurityToken(org.apache.xml.security.stax.securityToken.InboundSecurityToken inboundSecurityToken, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext, org.apache.xml.security.binding.xmlenc.EncryptedDataType encryptedDataType) throws org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
handleSecurityToken
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
org.apache.xml.security.exceptions.XMLSecurityException
-
doFinal
public void doFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) throws XMLStreamException, org.apache.xml.security.exceptions.XMLSecurityException
- Specified by:
doFinal
in interfaceorg.apache.xml.security.stax.ext.InputProcessor
- Overrides:
doFinal
in classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
- Throws:
XMLStreamException
org.apache.xml.security.exceptions.XMLSecurityException
-
-