@Deprecated
public interface KmsClient
extends java.io.Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
KmsClient.KeyGenerationResult
Deprecated.
For KMS systems that support key generation, this class keeps the key generation result - the
raw secret key, and its wrap.
|
Modifier and Type | Method and Description |
---|---|
default KmsClient.KeyGenerationResult |
generateKey(java.lang.String wrappingKeyId)
Deprecated.
Generate a new secret key in the KMS server, and wrap it using a wrapping/master key which is
stored in KMS and referenced by an ID.
|
void |
initialize(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
Initialize the KMS client with given properties
|
default boolean |
supportsKeyGeneration()
Deprecated.
Some KMS systems support generation of secret keys inside the KMS server.
|
java.nio.ByteBuffer |
unwrapKey(java.lang.String wrappedKey,
java.lang.String wrappingKeyId)
Deprecated.
Unwrap a secret key, using a wrapping/master key which is stored in KMS and referenced by an
ID.
|
java.lang.String |
wrapKey(java.nio.ByteBuffer key,
java.lang.String wrappingKeyId)
Deprecated.
Wrap a secret key, using a wrapping/master key which is stored in KMS and referenced by an ID.
|
java.lang.String wrapKey(java.nio.ByteBuffer key, java.lang.String wrappingKeyId)
key
- a secret key being wrappedwrappingKeyId
- a key ID that represents a wrapping key stored in KMSdefault boolean supportsKeyGeneration()
wrapKey(ByteBuffer,
String)
to wrap them in KMS.default KmsClient.KeyGenerationResult generateKey(java.lang.String wrappingKeyId)
wrappingKeyId
- a key ID that represents a wrapping key stored in KMSjava.nio.ByteBuffer unwrapKey(java.lang.String wrappedKey, java.lang.String wrappingKeyId)
wrappedKey
- wrapped key material (encrypted key and optional KMS metadata, returned by
the wrapKey method)wrappingKeyId
- a key ID that represents a wrapping key stored in KMSvoid initialize(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- kms client properties