org.apache.xml.security.stax.impl.util
Class IVSplittingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.xml.security.stax.impl.util.IVSplittingOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
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
- Version:
- $Revision: 1493514 $ $Date: 2013-06-16 15:13:44 +0100 (Sun, 16 Jun 2013) $
- Author:
- $Author: giger $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IVSplittingOutputStream
public IVSplittingOutputStream(OutputStream out,
Cipher cipher,
Key secretKey,
int ivLength)
getIv
public byte[] getIv()
isIVComplete
public boolean isIVComplete()
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
setParentOutputStream
public void setParentOutputStream(ReplaceableOuputStream replaceableOuputStream)
Copyright © 2000–2013 The Apache Software Foundation. All rights reserved.