Class XMLEncryptedKeyInputHandler
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputSecurityHeaderHandler
-
- org.apache.xml.security.stax.impl.processor.input.XMLEncryptedKeyInputHandler
-
- All Implemented Interfaces:
XMLSecurityHeaderHandler
public class XMLEncryptedKeyInputHandler extends AbstractInputSecurityHeaderHandler
An input handler for the EncryptedKey XML Structure
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description XMLEncryptedKeyInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]
generateDigest(byte[] inputBytes)
protected byte[]
getBytesFromAttachment(java.lang.String xopUri, XMLSecurityProperties securityProperties)
void
handle(InputProcessorChain inputProcessorChain, EncryptedKeyType encryptedKeyType, XMLSecEvent responsibleXMLSecStartXMLEvent, XMLSecurityProperties securityProperties)
void
handle(InputProcessorChain inputProcessorChain, XMLSecurityProperties securityProperties, java.util.Deque<XMLSecEvent> eventQueue, java.lang.Integer index)
protected void
handleReferenceList(InputProcessorChain inputProcessorChain, EncryptedKeyType encryptedKeyType, XMLSecurityProperties securityProperties)
-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputSecurityHeaderHandler
getElementPath, getResponsibleStartXMLEvent, getResponsibleXMLSecEvents, parseStructure
-
-
-
-
Method Detail
-
handle
public void handle(InputProcessorChain inputProcessorChain, XMLSecurityProperties securityProperties, java.util.Deque<XMLSecEvent> eventQueue, java.lang.Integer index) throws XMLSecurityException
- Throws:
XMLSecurityException
-
handle
public void handle(InputProcessorChain inputProcessorChain, EncryptedKeyType encryptedKeyType, XMLSecEvent responsibleXMLSecStartXMLEvent, XMLSecurityProperties securityProperties) throws XMLSecurityException
- Throws:
XMLSecurityException
-
generateDigest
private byte[] generateDigest(byte[] inputBytes) throws XMLSecurityException
- Throws:
XMLSecurityException
-
handleReferenceList
protected void handleReferenceList(InputProcessorChain inputProcessorChain, EncryptedKeyType encryptedKeyType, XMLSecurityProperties securityProperties) throws XMLSecurityException
- Throws:
XMLSecurityException
-
getBytesFromAttachment
protected byte[] getBytesFromAttachment(java.lang.String xopUri, XMLSecurityProperties securityProperties) throws XMLSecurityException
- Throws:
XMLSecurityException
-
-