public class GenericDecryptionTool extends DecryptionTool
DecryptionTool.DecryptionSetup
Constructor and Description |
---|
GenericDecryptionTool(DecryptionTool.DecryptionSetup ds) |
Modifier and Type | Method and Description |
---|---|
byte[] |
decryptFirstBytes(byte[] bits)
Decrypts the beginning of the file and returns its clear-text binary representation.
|
java.io.InputStream |
decryptInputStream(java.io.InputStream is)
Wraps the source InputStream into deciphering input stream
|
get, isTransparent, make
checksum_impl, checksum, makeSchema, readAll_impl, readAll, remove_impl, remove, remove, remove, remove, writeAll_impl, writeAll
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public GenericDecryptionTool(DecryptionTool.DecryptionSetup ds)
public byte[] decryptFirstBytes(byte[] bits)
DecryptionTool
decryptFirstBytes
in class DecryptionTool
bits
- the first chunk of data of the datafile. The input byte array can contain zero-bytes padding (eg. case of
DEFLATE compression in Zip files, the decompressed data can be smaller than the source chunk).
The implementation of the method should discard the padding (all zero bytes at the end of the array).public java.io.InputStream decryptInputStream(java.io.InputStream is)
DecryptionTool
decryptInputStream
in class DecryptionTool
is
- InputStream created by ByteVec (H2O-specific behavior is expected!)