Class CryptoModuleFactory
- java.lang.Object
-
- 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
Constructors Constructor Description CryptoModuleFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CryptoModuleParameters
createParamsObjectFromAccumuloConfiguration(AccumuloConfiguration conf)
static CryptoModuleParameters
fillParamsObjectFromConfiguration(CryptoModuleParameters params, AccumuloConfiguration conf)
static CryptoModuleParameters
fillParamsObjectFromStringMap(CryptoModuleParameters params, Map<String,String> cryptoOpts)
static CryptoModule
getCryptoModule(String cryptoModuleClassname)
static CryptoModule
getCryptoModule(AccumuloConfiguration conf)
This method returns a crypto module based on settings in the given configuration parameter.static SecretKeyEncryptionStrategy
getSecretKeyEncryptionStrategy(String className)
static SecretKeyEncryptionStrategy
getSecretKeyEncryptionStrategy(AccumuloConfiguration conf)
static String[]
parseCipherTransform(String cipherTransform)
-
-
-
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)
-
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)
-
-