Class AbstractDecryptInputProcessor.DecryptionThread
- java.lang.Object
-
- org.apache.xml.security.stax.impl.processor.input.AbstractDecryptInputProcessor.DecryptionThread
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- AbstractDecryptInputProcessor
static class AbstractDecryptInputProcessor.DecryptionThread extends java.lang.Object implements java.lang.Runnable
The DecryptionThread handles encrypted XML-Parts
-
-
Field Summary
Fields Modifier and Type Field Description private XMLSecEvent
firstEvent
private boolean
header
private InputProcessorChain
inputProcessorChain
private int
ivLength
private java.io.PipedInputStream
pipedInputStream
private java.io.PipedOutputStream
pipedOutputStream
private java.security.Key
secretKey
private javax.crypto.Cipher
symmetricCipher
-
Constructor Summary
Constructors Modifier Constructor Description protected
DecryptionThread(InputProcessorChain inputProcessorChain, boolean header, XMLSecEvent firstEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getIvLength()
java.io.PipedInputStream
getPipedInputStream()
protected java.security.Key
getSecretKey()
protected javax.crypto.Cipher
getSymmetricCipher()
private XMLSecEvent
processNextEvent()
void
run()
(package private) void
setIvLength(int ivLength)
protected void
setSecretKey(java.security.Key secretKey)
protected void
setSymmetricCipher(javax.crypto.Cipher symmetricCipher)
-
-
-
Field Detail
-
inputProcessorChain
private final InputProcessorChain inputProcessorChain
-
header
private final boolean header
-
pipedOutputStream
private final java.io.PipedOutputStream pipedOutputStream
-
pipedInputStream
private final java.io.PipedInputStream pipedInputStream
-
symmetricCipher
private javax.crypto.Cipher symmetricCipher
-
ivLength
private int ivLength
-
secretKey
private java.security.Key secretKey
-
firstEvent
private final XMLSecEvent firstEvent
-
-
Constructor Detail
-
DecryptionThread
protected DecryptionThread(InputProcessorChain inputProcessorChain, boolean header, XMLSecEvent firstEvent) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamException
XMLSecurityException
-
-
Method Detail
-
getPipedInputStream
public java.io.PipedInputStream getPipedInputStream()
-
processNextEvent
private XMLSecEvent processNextEvent() throws XMLSecurityException, javax.xml.stream.XMLStreamException
- Throws:
XMLSecurityException
javax.xml.stream.XMLStreamException
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
getSymmetricCipher
protected javax.crypto.Cipher getSymmetricCipher()
-
setSymmetricCipher
protected void setSymmetricCipher(javax.crypto.Cipher symmetricCipher)
-
getIvLength
int getIvLength()
-
setIvLength
void setIvLength(int ivLength)
-
getSecretKey
protected java.security.Key getSecretKey()
-
setSecretKey
protected void setSecretKey(java.security.Key secretKey)
-
-