@InterfaceAudience.Private public class EagerKeyGeneratorKeyProviderCryptoExtension extends KeyProviderCryptoExtension
KeyProviderCryptoExtension that pre-generates and caches encrypted
keys.KeyProviderCryptoExtension.EncryptedKeyVersionKeyProviderExtension.ExtensionKeyProvider.KeyVersion, KeyProvider.Metadata, KeyProvider.Options| Modifier and Type | Field and Description |
|---|---|
static int |
KMS_KEY_CACHE_EXPIRY_DEFAULT |
static String |
KMS_KEY_CACHE_EXPIRY_MS |
static String |
KMS_KEY_CACHE_LOW_WATERMARK |
static float |
KMS_KEY_CACHE_LOW_WATERMARK_DEFAULT |
static String |
KMS_KEY_CACHE_NUM_REFILL_THREADS |
static int |
KMS_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT |
static String |
KMS_KEY_CACHE_SIZE |
static int |
KMS_KEY_CACHE_SIZE_DEFAULT |
EEK, EKDEFAULT_BITLENGTH, DEFAULT_BITLENGTH_NAME, DEFAULT_CIPHER, DEFAULT_CIPHER_NAME| Constructor and Description |
|---|
EagerKeyGeneratorKeyProviderCryptoExtension(Configuration conf,
KeyProviderCryptoExtension keyProviderCryptoExtension)
This class is a proxy for a
KeyProviderCryptoExtension that
decorates the underlying CryptoExtension with one that eagerly
caches pre-generated Encrypted Keys using a ValueQueue |
| Modifier and Type | Method and Description |
|---|---|
KeyProvider.KeyVersion |
rollNewVersion(String name) |
KeyProvider.KeyVersion |
rollNewVersion(String name,
byte[] material) |
close, createKeyProviderCryptoExtension, decryptEncryptedKey, generateEncryptedKey, warmUpEncryptedKeyscreateKey, createKey, deleteKey, flush, getCurrentKey, getExtension, getKeyProvider, getKeys, getKeysMetadata, getKeyVersion, getKeyVersions, getMetadata, isTransient, toStringbuildVersionName, findProvider, generateKey, getBaseName, getConf, optionspublic static final String KMS_KEY_CACHE_SIZE
public static final int KMS_KEY_CACHE_SIZE_DEFAULT
public static final String KMS_KEY_CACHE_LOW_WATERMARK
public static final float KMS_KEY_CACHE_LOW_WATERMARK_DEFAULT
public static final String KMS_KEY_CACHE_EXPIRY_MS
public static final int KMS_KEY_CACHE_EXPIRY_DEFAULT
public static final String KMS_KEY_CACHE_NUM_REFILL_THREADS
public static final int KMS_KEY_CACHE_NUM_REFILL_THREADS_DEFAULT
public EagerKeyGeneratorKeyProviderCryptoExtension(Configuration conf, KeyProviderCryptoExtension keyProviderCryptoExtension)
KeyProviderCryptoExtension that
decorates the underlying CryptoExtension with one that eagerly
caches pre-generated Encrypted Keys using a ValueQueueconf - Configuration object to load parameters fromkeyProviderCryptoExtension - KeyProviderCryptoExtension
to delegate calls to.public KeyProvider.KeyVersion rollNewVersion(String name) throws NoSuchAlgorithmException, IOException
rollNewVersion in class KeyProviderExtension<KeyProviderCryptoExtension.CryptoExtension>NoSuchAlgorithmExceptionIOExceptionpublic KeyProvider.KeyVersion rollNewVersion(String name, byte[] material) throws IOException
rollNewVersion in class KeyProviderExtension<KeyProviderCryptoExtension.CryptoExtension>IOExceptionCopyright © 2018 CERN. All Rights Reserved.