org.apache.hadoop.hbase.io.crypto
Class DefaultCipherProvider

java.lang.Object
  extended by org.apache.hadoop.hbase.io.crypto.DefaultCipherProvider
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, CipherProvider

@InterfaceAudience.Public
@InterfaceStability.Unstable
public final class DefaultCipherProvider
extends Object
implements CipherProvider

The default cipher provider. Supports AES via the JCE.


Method Summary
 Cipher getCipher(String name)
          Get an Cipher
 org.apache.hadoop.conf.Configuration getConf()
           
static DefaultCipherProvider getInstance()
           
 String getName()
          Return the provider's name
 String[] getSupportedCiphers()
          Return the set of Ciphers supported by this provider
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DefaultCipherProvider getInstance()

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

getName

public String getName()
Description copied from interface: CipherProvider
Return the provider's name

Specified by:
getName in interface CipherProvider

getCipher

public Cipher getCipher(String name)
Description copied from interface: CipherProvider
Get an Cipher

Specified by:
getCipher in interface CipherProvider
Parameters:
name - Cipher name, e.g. "AES"
Returns:
the appropriate Cipher

getSupportedCiphers

public String[] getSupportedCiphers()
Description copied from interface: CipherProvider
Return the set of Ciphers supported by this provider

Specified by:
getSupportedCiphers in interface CipherProvider


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.