Package org.apache.hadoop.crypto.key.kms
Class KMSClientProvider.Factory
java.lang.Object
org.apache.hadoop.crypto.key.KeyProviderFactory
org.apache.hadoop.crypto.key.kms.KMSClientProvider.Factory
- Enclosing class:
- KMSClientProvider
The factory to create KMSClientProvider, which is used by the
ServiceLoader.
-
Field Summary
Fields inherited from class org.apache.hadoop.crypto.key.KeyProviderFactory
KEY_PROVIDER_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProvider(URI providerUri, Configuration conf) This provider expects URIs in the following form : kms://<PROTO>@<AUTHORITY>/<PATH> where : - PROTO = http or https - AUTHORITY = <HOSTS>[:<PORT>] - HOSTS = <HOSTNAME>[;<HOSTS>] - HOSTNAME = string - PORT = integer This will always create aLoadBalancingKMSClientProviderif the uri is correct.Methods inherited from class org.apache.hadoop.crypto.key.KeyProviderFactory
get, getProviders
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
createProvider
This provider expects URIs in the following form : kms://<PROTO>@<AUTHORITY>/<PATH> where : - PROTO = http or https - AUTHORITY = <HOSTS>[:<PORT>] - HOSTS = <HOSTNAME>[;<HOSTS>] - HOSTNAME = string - PORT = integer This will always create aLoadBalancingKMSClientProviderif the uri is correct.- Specified by:
createProviderin classKeyProviderFactory- Throws:
IOException
-