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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor -
Field Summary
Fields inherited from class org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor
maximumAllowedEncryptedDataEvents, maximumAllowedXMLStructureDepth -
Constructor Summary
ConstructorsConstructorDescriptionDecryptInputProcessor(org.apache.xml.security.binding.xmldsig.KeyInfoType keyInfoType, org.apache.xml.security.binding.xmlenc.ReferenceList referenceList, WSSSecurityProperties securityProperties, WSInboundSecurityContext securityContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamapplyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream) voiddoFinal(org.apache.xml.security.stax.ext.InputProcessorChain inputProcessorChain) protected voidhandleCipherReference(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 voidhandleEncryptedContent(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 voidhandleSecurityToken(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 InputStreamhandleXOPInclude(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.AbstractDecryptedEventReaderInputProcessornewDecryptedEventReaderInputProcessor(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, processHeaderEventMethods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
Constructor Details
-
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 Details
-
applyTransforms
protected InputStream applyTransforms(org.apache.xml.security.binding.xmlenc.ReferenceType referenceType, InputStream inputStream) throws org.apache.xml.security.exceptions.XMLSecurityException - Overrides:
applyTransformsin 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:
handleEncryptedContentin 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:
handleCipherReferencein 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:
handleXOPIncludein 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:
newDecryptedEventReaderInputProcessorin 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:
handleSecurityTokenin 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:
doFinalin interfaceorg.apache.xml.security.stax.ext.InputProcessor- Overrides:
doFinalin classorg.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor- Throws:
XMLStreamExceptionorg.apache.xml.security.exceptions.XMLSecurityException
-