@InterfaceAudience.Public public final class CryptoCipherProvider extends Object implements CipherProvider
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private static CryptoCipherProvider |
instance |
Modifier | Constructor and Description |
---|---|
private |
CryptoCipherProvider() |
Modifier and Type | Method and Description |
---|---|
Cipher |
getCipher(String name)
Get an Cipher
|
org.apache.hadoop.conf.Configuration |
getConf() |
static CryptoCipherProvider |
getInstance() |
String |
getName()
Return the provider's name
|
String[] |
getSupportedCiphers()
Return the set of Ciphers supported by this provider
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
private static CryptoCipherProvider instance
private org.apache.hadoop.conf.Configuration conf
private CryptoCipherProvider()
public static CryptoCipherProvider getInstance()
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public String getName()
CipherProvider
getName
in interface CipherProvider
public Cipher getCipher(String name)
CipherProvider
getCipher
in interface CipherProvider
name
- Cipher name, e.g. "AES"public String[] getSupportedCiphers()
CipherProvider
getSupportedCiphers
in interface CipherProvider
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.