Class IVSplittingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.xml.security.stax.impl.util.IVSplittingOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
IV splitting from the first few bytes in the stream.
When the iv is completely received the cipher will be initialized
and this output stream will be removed from chain of output streams
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
ConstructorsConstructorDescriptionIVSplittingOutputStream(OutputStream out, Cipher cipher, Key secretKey, int ivLength) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIv()booleanvoidsetParentOutputStream(ReplaceableOuputStream replaceableOuputStream) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.FilterOutputStream
close, flush
-
Constructor Details
-
IVSplittingOutputStream
-
-
Method Details
-
getIv
public byte[] getIv() -
isIVComplete
public boolean isIVComplete() -
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
setParentOutputStream
-