Class IVSplittingOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.xml.security.stax.impl.util.IVSplittingOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class IVSplittingOutputStream extends java.io.FilterOutputStreamIV 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- Version:
- $Revision: 1679329 $ $Date: 2015-05-14 11:23:20 +0200 (Thu, 14 May 2015) $
- Author:
- $Author: coheigea $
-
-
Constructor Summary
Constructors Constructor Description IVSplittingOutputStream(java.io.OutputStream out, javax.crypto.Cipher cipher, java.security.Key secretKey, int ivLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getIv()booleanisIVComplete()voidsetParentOutputStream(ReplaceableOuputStream replaceableOuputStream)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
getIv
public byte[] getIv()
-
isIVComplete
public boolean isIVComplete()
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
setParentOutputStream
public void setParentOutputStream(ReplaceableOuputStream replaceableOuputStream)
-
-