public abstract class AbstractDecryptInputProcessor extends AbstractInputProcessor
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor
The DecryptedEventReaderInputProcessor reads the decrypted stream with a StAX reader and
forwards the generated XMLEvents
|
| Modifier and Type | Field and Description |
|---|---|
protected static Integer |
maximumAllowedEncryptedDataEvents |
protected static Integer |
maximumAllowedXMLStructureDepth |
| Constructor and Description |
|---|
AbstractDecryptInputProcessor(KeyInfoType keyInfoType,
ReferenceList referenceList,
XMLSecurityProperties securityProperties) |
AbstractDecryptInputProcessor(XMLSecurityProperties securityProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
applyTransforms(ReferenceType referenceType,
InputStream inputStream) |
void |
doFinal(InputProcessorChain inputProcessorChain)
Will be called when the whole document is processed.
|
List<ReferenceType> |
getProcessedReferences() |
Map<String,ReferenceType> |
getReferences() |
protected abstract void |
handleCipherReference(InputProcessorChain inputProcessorChain,
EncryptedDataType encryptedDataType,
Cipher cipher,
InboundSecurityToken inboundSecurityToken) |
protected abstract void |
handleEncryptedContent(InputProcessorChain inputProcessorChain,
XMLSecStartElement parentXMLSecStartElement,
InboundSecurityToken inboundSecurityToken,
EncryptedDataType encryptedDataType) |
protected abstract void |
handleSecurityToken(InboundSecurityToken inboundSecurityToken,
InboundSecurityContext inboundSecurityContext,
EncryptedDataType encryptedDataType) |
protected ReferenceType |
matchesReferenceId(XMLSecStartElement xmlSecStartElement) |
protected abstract AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor |
newDecryptedEventReaderInputProcessor(boolean encryptedHeader,
XMLSecStartElement xmlSecStartElement,
EncryptedDataType currentEncryptedDataType,
InboundSecurityToken inboundSecurityToken,
InboundSecurityContext inboundSecurityContext) |
XMLSecEvent |
processNextEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next XMLEvent is requested
|
XMLSecEvent |
processNextHeaderEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next security-header XMLEvent is requested
|
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhaseprotected static final Integer maximumAllowedXMLStructureDepth
protected static final Integer maximumAllowedEncryptedDataEvents
public AbstractDecryptInputProcessor(XMLSecurityProperties securityProperties) throws XMLSecurityException
XMLSecurityExceptionpublic AbstractDecryptInputProcessor(KeyInfoType keyInfoType, ReferenceList referenceList, XMLSecurityProperties securityProperties) throws XMLSecurityException
XMLSecurityExceptionpublic Map<String,ReferenceType> getReferences()
public List<ReferenceType> getProcessedReferences()
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessorprocessNextHeaderEvent in interface InputProcessorprocessNextHeaderEvent in class AbstractInputProcessorXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic XMLSecEvent processNextEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessorprocessNextEvent in interface InputProcessorprocessNextEvent in class AbstractInputProcessorXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occursprotected InputStream applyTransforms(ReferenceType referenceType, InputStream inputStream) throws XMLSecurityException
XMLSecurityExceptionprotected abstract AbstractDecryptInputProcessor.AbstractDecryptedEventReaderInputProcessor newDecryptedEventReaderInputProcessor(boolean encryptedHeader, XMLSecStartElement xmlSecStartElement, EncryptedDataType currentEncryptedDataType, InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext) throws XMLSecurityException
XMLSecurityExceptionprotected abstract void handleSecurityToken(InboundSecurityToken inboundSecurityToken, InboundSecurityContext inboundSecurityContext, EncryptedDataType encryptedDataType) throws XMLSecurityException
XMLSecurityExceptionprotected abstract void handleEncryptedContent(InputProcessorChain inputProcessorChain, XMLSecStartElement parentXMLSecStartElement, InboundSecurityToken inboundSecurityToken, EncryptedDataType encryptedDataType) throws XMLSecurityException
XMLSecurityExceptionprotected abstract void handleCipherReference(InputProcessorChain inputProcessorChain, EncryptedDataType encryptedDataType, Cipher cipher, InboundSecurityToken inboundSecurityToken) throws XMLSecurityException
XMLSecurityExceptionprotected ReferenceType matchesReferenceId(XMLSecStartElement xmlSecStartElement)
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
InputProcessordoFinal in interface InputProcessordoFinal in class AbstractInputProcessorXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occursCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.