Package org.nuxeo.ecm.core.blob.binary
Class AESBinaryManager.CipherAndDigestOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.nuxeo.ecm.core.blob.binary.AESBinaryManager.CipherAndDigestOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
AESBinaryManager
A
CipherOutputStream that also does a digest of the original stream at
the same time.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Cipherprotected byte[]protected MessageDigestprotected OutputStream -
Constructor Summary
ConstructorsConstructorDescriptionCipherAndDigestOutputStream(OutputStream out, Cipher cipher, MessageDigest messageDigest) -
Method Summary
Methods inherited from class java.io.FilterOutputStream
writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
cipher
-
out
-
messageDigest
-
digest
protected byte[] digest
-
-
Constructor Details
-
CipherAndDigestOutputStream
-
-
Method Details
-
getDigest
public byte[] getDigest() -
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
write
- Overrides:
writein classFilterOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classFilterOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterOutputStream- Throws:
IOException
-