org.apache.hadoop.hbase.io.crypto
Interface Decryptor

All Known Implementing Classes:
AESDecryptor

@InterfaceAudience.Public
@InterfaceStability.Unstable
public interface Decryptor

Decryptors apply a cipher to an InputStream to recover plaintext.


Method Summary
 InputStream createDecryptionStream(InputStream in)
          Create a stream for decryption
 int getBlockSize()
          Get the cipher's internal block size
 int getIvLength()
          Get the expected length for the initialization vector
 void reset()
          Reset state, reinitialize with the key and iv
 void setIv(byte[] iv)
          Set the initialization vector
 void setKey(Key key)
          Set the secret key
 

Method Detail

setKey

void setKey(Key key)
Set the secret key

Parameters:
key -

getIvLength

int getIvLength()
Get the expected length for the initialization vector

Returns:
the expected length for the initialization vector

getBlockSize

int getBlockSize()
Get the cipher's internal block size

Returns:
the cipher's internal block size

setIv

void setIv(byte[] iv)
Set the initialization vector

Parameters:
iv -

createDecryptionStream

InputStream createDecryptionStream(InputStream in)
Create a stream for decryption

Parameters:
in -

reset

void reset()
Reset state, reinitialize with the key and iv



Copyright © 2015 The Apache Software Foundation. All Rights Reserved.