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
public static class KMSClientProvider.Factory extends org.apache.hadoop.crypto.key.KeyProviderFactoryThe factory to create KMSClientProvider, which is used by the ServiceLoader.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.crypto.key.KeyProvidercreateProvider(URI providerUri, org.apache.hadoop.conf.Configuration conf)This provider expects URIs in the following form : kms://@ / where : - PROTO = http or https - AUTHORITY = [: ] - HOSTS = [; ] - HOSTNAME = string - PORT = integer This will always create a LoadBalancingKMSClientProviderif the uri is correct.
-
-
-
Method Detail
-
createProvider
public org.apache.hadoop.crypto.key.KeyProvider createProvider(URI providerUri, org.apache.hadoop.conf.Configuration conf) throws IOException
This provider expects URIs in the following form : kms://@ / where : - PROTO = http or https - AUTHORITY = [: ] - HOSTS = [; ] - HOSTNAME = string - PORT = integer This will always create a LoadBalancingKMSClientProviderif the uri is correct.- Specified by:
createProviderin classorg.apache.hadoop.crypto.key.KeyProviderFactory- Throws:
IOException
-
-