|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion
public static class KeyProviderCryptoExtension.EncryptedKeyVersion
An encrypted encryption key (EEK) and related information. An EEK must be decrypted using the key's encryption key before it can be used.
| Constructor Summary | |
|---|---|
protected |
KeyProviderCryptoExtension.EncryptedKeyVersion(String keyName,
String encryptionKeyVersionName,
byte[] encryptedKeyIv,
KeyProvider.KeyVersion encryptedKeyVersion)
Create a new EncryptedKeyVersion. |
| Method Summary | |
|---|---|
static KeyProviderCryptoExtension.EncryptedKeyVersion |
createForDecryption(String keyName,
String encryptionKeyVersionName,
byte[] encryptedKeyIv,
byte[] encryptedKeyMaterial)
Factory method to create a new EncryptedKeyVersion that can then be passed into KeyProviderCryptoExtension.decryptEncryptedKey(org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion). |
protected static byte[] |
deriveIV(byte[] encryptedKeyIV)
Derive the initialization vector (IV) for the encryption key from the IV of the encrypted key. |
byte[] |
getEncryptedKeyIv()
|
KeyProvider.KeyVersion |
getEncryptedKeyVersion()
|
String |
getEncryptionKeyName()
|
String |
getEncryptionKeyVersionName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected KeyProviderCryptoExtension.EncryptedKeyVersion(String keyName,
String encryptionKeyVersionName,
byte[] encryptedKeyIv,
KeyProvider.KeyVersion encryptedKeyVersion)
keyName - Name of the encryption key used to
encrypt the encrypted key.encryptionKeyVersionName - Version name of the encryption key used
to encrypt the encrypted key.encryptedKeyIv - Initialization vector of the encrypted
key. The IV of the encryption key used to
encrypt the encrypted key is derived from
this IV.encryptedKeyVersion - The encrypted encryption key version.| Method Detail |
|---|
public static KeyProviderCryptoExtension.EncryptedKeyVersion createForDecryption(String keyName,
String encryptionKeyVersionName,
byte[] encryptedKeyIv,
byte[] encryptedKeyMaterial)
KeyProviderCryptoExtension.decryptEncryptedKey(org.apache.hadoop.crypto.key.KeyProviderCryptoExtension.EncryptedKeyVersion). Note that the fields of the
returned EncryptedKeyVersion will only partially be populated; it is not
necessarily suitable for operations besides decryption.
keyName - Key name of the encryption key use to encrypt the
encrypted key.encryptionKeyVersionName - Version name of the encryption key used
to encrypt the encrypted key.encryptedKeyIv - Initialization vector of the encrypted
key. The IV of the encryption key used to
encrypt the encrypted key is derived from
this IV.encryptedKeyMaterial - Key material of the encrypted key.
public String getEncryptionKeyName()
public String getEncryptionKeyVersionName()
public byte[] getEncryptedKeyIv()
public KeyProvider.KeyVersion getEncryptedKeyVersion()
protected static byte[] deriveIV(byte[] encryptedKeyIV)
encryptedKeyIV - of the encrypted key (i.e. getEncryptedKeyIv())
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||