org.apache.hadoop.hbase.io.crypto.aes
Class AESDecryptor

java.lang.Object
  extended by org.apache.hadoop.hbase.io.crypto.aes.AESDecryptor
All Implemented Interfaces:
Decryptor

@InterfaceAudience.Private
@InterfaceStability.Evolving
public class AESDecryptor
extends Object
implements Decryptor


Constructor Summary
AESDecryptor(Cipher cipher)
           
 
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
protected  void init()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AESDecryptor

public AESDecryptor(Cipher cipher)
Method Detail

setKey

public void setKey(Key key)
Description copied from interface: Decryptor
Set the secret key

Specified by:
setKey in interface Decryptor

getIvLength

public int getIvLength()
Description copied from interface: Decryptor
Get the expected length for the initialization vector

Specified by:
getIvLength in interface Decryptor
Returns:
the expected length for the initialization vector

getBlockSize

public int getBlockSize()
Description copied from interface: Decryptor
Get the cipher's internal block size

Specified by:
getBlockSize in interface Decryptor
Returns:
the cipher's internal block size

setIv

public void setIv(byte[] iv)
Description copied from interface: Decryptor
Set the initialization vector

Specified by:
setIv in interface Decryptor

createDecryptionStream

public InputStream createDecryptionStream(InputStream in)
Description copied from interface: Decryptor
Create a stream for decryption

Specified by:
createDecryptionStream in interface Decryptor

reset

public void reset()
Description copied from interface: Decryptor
Reset state, reinitialize with the key and iv

Specified by:
reset in interface Decryptor

init

protected void init()


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.