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
public class IVSplittingOutputStream extends FilterOutputStream
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
Constructors Constructor Description IVSplittingOutputStream(OutputStream out, Cipher cipher, Key secretKey, int ivLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getIv()
boolean
isIVComplete()
void
setParentOutputStream(ReplaceableOuputStream replaceableOuputStream)
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.FilterOutputStream
close, flush
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
IVSplittingOutputStream
public IVSplittingOutputStream(OutputStream out, Cipher cipher, Key secretKey, int ivLength)
-
-
Method Detail
-
getIv
public byte[] getIv()
-
isIVComplete
public boolean isIVComplete()
-
write
public void write(int b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
setParentOutputStream
public void setParentOutputStream(ReplaceableOuputStream replaceableOuputStream)
-
-