@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class KeyProviderFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_PROVIDER_PATH |
Constructor and Description |
---|
KeyProviderFactory() |
Modifier and Type | Method and Description |
---|---|
abstract KeyProvider |
createProvider(URI providerName,
Configuration conf) |
static KeyProvider |
get(URI uri,
Configuration conf)
Create a KeyProvider based on a provided URI.
|
static List<KeyProvider> |
getProviders(Configuration conf) |
public static final String KEY_PROVIDER_PATH
public KeyProviderFactory()
public abstract KeyProvider createProvider(URI providerName, Configuration conf) throws IOException
IOException
public static List<KeyProvider> getProviders(Configuration conf) throws IOException
IOException
public static KeyProvider get(URI uri, Configuration conf) throws IOException
uri
- key provider URIconf
- configuration to initialize the key providerNULL
if
a provider for the specified URI scheme could not be found.IOException
- thrown if the provider failed to initialize.Copyright © 2018 Apache Software Foundation. All rights reserved.