Class GenericCryptoServiceFactory
- java.lang.Object
-
- org.apache.accumulo.core.spi.crypto.GenericCryptoServiceFactory
-
- All Implemented Interfaces:
CryptoServiceFactory
public class GenericCryptoServiceFactory extends Object implements CryptoServiceFactory
Factory that will load a crypto service configured, first checkingGENERAL_SERVICE_NAME_PROP
and thenTABLE_SERVICE_NAME_PROP
. Useful for general purpose on disk encryption, with no Table context.
-
-
Field Summary
Fields Modifier and Type Field Description static String
GENERAL_SERVICE_NAME_PROP
static String
TABLE_SERVICE_NAME_PROP
-
Constructor Summary
Constructors Constructor Description GenericCryptoServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoService
getService(CryptoEnvironment environment, Map<String,String> properties)
Return the appropriate CryptoService.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.spi.crypto.CryptoServiceFactory
newCryptoService
-
-
-
-
Method Detail
-
getService
public CryptoService getService(CryptoEnvironment environment, Map<String,String> properties)
Description copied from interface:CryptoServiceFactory
Return the appropriate CryptoService.- Specified by:
getService
in interfaceCryptoServiceFactory
- Parameters:
environment
- CryptoEnvironment containing a variety of informationproperties
- configuration- Returns:
- CryptoService based on the environment and configuration
-
-