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.RunnableThe DecryptionThread handles encrypted XML-Parts
-
-
Field Summary
Fields Modifier and Type Field Description private XMLSecEventfirstEventprivate booleanheaderprivate InputProcessorChaininputProcessorChainprivate intivLengthprivate java.io.PipedInputStreampipedInputStreamprivate java.io.PipedOutputStreampipedOutputStreamprivate java.security.KeysecretKeyprivate javax.crypto.CiphersymmetricCipher
-
Constructor Summary
Constructors Modifier Constructor Description protectedDecryptionThread(InputProcessorChain inputProcessorChain, boolean header, XMLSecEvent firstEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intgetIvLength()java.io.PipedInputStreamgetPipedInputStream()protected java.security.KeygetSecretKey()protected javax.crypto.CiphergetSymmetricCipher()private XMLSecEventprocessNextEvent()voidrun()(package private) voidsetIvLength(int ivLength)protected voidsetSecretKey(java.security.Key secretKey)protected voidsetSymmetricCipher(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.XMLStreamExceptionXMLSecurityException
-
-
Method Detail
-
getPipedInputStream
public java.io.PipedInputStream getPipedInputStream()
-
processNextEvent
private XMLSecEvent processNextEvent() throws XMLSecurityException, javax.xml.stream.XMLStreamException
- Throws:
XMLSecurityExceptionjavax.xml.stream.XMLStreamException
-
run
public void run()
- Specified by:
runin 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)
-
-