Package org.apache.accumulo.core.crypto
Class CryptoFactoryLoader
- java.lang.Object
-
- org.apache.accumulo.core.crypto.CryptoFactoryLoader
-
public class CryptoFactoryLoader extends Object
-
-
Constructor Summary
Constructors Constructor Description CryptoFactoryLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CryptoService
getServiceForClient(CryptoEnvironment.Scope scope, Map<String,String> properties)
Returns a CryptoService configured for the scope using the properties.static CryptoService
getServiceForClientWithTable(Map<String,String> systemConfig, Map<String,String> tableProps, TableId tableId)
For use by client code, in a Table context.static CryptoService
getServiceForServer(AccumuloConfiguration conf)
For use by server utilities not associated with a table.static CryptoServiceFactory
newInstance(AccumuloConfiguration conf)
Creates a new server Factory.
-
-
-
Method Detail
-
newInstance
public static CryptoServiceFactory newInstance(AccumuloConfiguration conf)
Creates a new server Factory.
-
getServiceForServer
public static CryptoService getServiceForServer(AccumuloConfiguration conf)
For use by server utilities not associated with a table. Requires Instance, general and table configuration. Creates a new Factory from the configuration and gets the CryptoService from that Factory.
-
getServiceForClient
public static CryptoService getServiceForClient(CryptoEnvironment.Scope scope, Map<String,String> properties)
Returns a CryptoService configured for the scope using the properties. This is used for client operations not associated with a table, either for r-files (TABLE scope) or WALs. The GenericCryptoServiceFactory is used for loading the CryptoService.
-
-