public class NullDecryptionTool extends DecryptionTool
DecryptionTool.DecryptionSetup
Constructor and Description |
---|
NullDecryptionTool() |
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
|
boolean |
isTransparent() |
get, make
checksum_impl, checksum_impl, checksum, checksum, getKey, makeSchema, readAll_impl, readAll, remove_impl, remove_impl, remove_self_key_impl, remove, remove, remove, remove, remove, remove, removeQuietly, writeAll_impl, writeAll
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
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!)public boolean isTransparent()
isTransparent
in class DecryptionTool