public static class AESBinaryManager.CipherAndDigestOutputStream extends FilterOutputStream
CipherOutputStream
that also does a digest of the original stream at
the same time.Constructor and Description |
---|
AESBinaryManager.CipherAndDigestOutputStream(OutputStream out,
Cipher cipher,
MessageDigest messageDigest) |
public AESBinaryManager.CipherAndDigestOutputStream(OutputStream out, Cipher cipher, MessageDigest messageDigest)
public byte[] getDigest()
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.