org.apache.accumulo.core.security.crypto
Class CryptoModuleFactory

java.lang.Object
  extended by org.apache.accumulo.core.security.crypto.CryptoModuleFactory

public class CryptoModuleFactory
extends Object

This factory module exists to assist other classes in loading crypto modules.


Constructor Summary
CryptoModuleFactory()
           
 
Method Summary
static CryptoModuleParameters createParamsObjectFromAccumuloConfiguration(AccumuloConfiguration conf)
           
static CryptoModuleParameters fillParamsObjectFromConfiguration(CryptoModuleParameters params, AccumuloConfiguration conf)
           
static CryptoModuleParameters fillParamsObjectFromStringMap(CryptoModuleParameters params, Map<String,String> cryptoOpts)
           
static CryptoModule getCryptoModule(AccumuloConfiguration conf)
          This method returns a crypto module based on settings in the given configuration parameter.
static CryptoModule getCryptoModule(String cryptoModuleClassname)
           
static SecretKeyEncryptionStrategy getSecretKeyEncryptionStrategy(AccumuloConfiguration conf)
           
static SecretKeyEncryptionStrategy getSecretKeyEncryptionStrategy(String className)
           
static String[] parseCipherTransform(String cipherTransform)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoModuleFactory

public CryptoModuleFactory()
Method Detail

getCryptoModule

public static CryptoModule getCryptoModule(AccumuloConfiguration conf)
This method returns a crypto module based on settings in the given configuration parameter.

Returns:
a class implementing the CryptoModule interface. It will *never* return null; rather, it will return a class which obeys the interface but makes no changes to the underlying data.

getCryptoModule

public static CryptoModule getCryptoModule(String cryptoModuleClassname)

getSecretKeyEncryptionStrategy

public static SecretKeyEncryptionStrategy getSecretKeyEncryptionStrategy(AccumuloConfiguration conf)

getSecretKeyEncryptionStrategy

public static SecretKeyEncryptionStrategy getSecretKeyEncryptionStrategy(String className)

parseCipherTransform

public static String[] parseCipherTransform(String cipherTransform)

createParamsObjectFromAccumuloConfiguration

public static CryptoModuleParameters createParamsObjectFromAccumuloConfiguration(AccumuloConfiguration conf)

fillParamsObjectFromConfiguration

public static CryptoModuleParameters fillParamsObjectFromConfiguration(CryptoModuleParameters params,
                                                                       AccumuloConfiguration conf)

fillParamsObjectFromStringMap

public static CryptoModuleParameters fillParamsObjectFromStringMap(CryptoModuleParameters params,
                                                                   Map<String,String> cryptoOpts)


Copyright © 2015 Apache Accumulo Project. All rights reserved.