public interface VaultTransitOperations
transit
backend.Modifier and Type | Method and Description |
---|---|
void |
configureKey(String keyName,
VaultTransitKeyConfiguration keyConfiguration)
Create a new named encryption key given a
name . |
void |
createKey(String keyName)
Create a new named encryption key given a
name . |
void |
createKey(String keyName,
VaultTransitKeyCreationRequest createKeyRequest)
Create a new named encryption key given a
name and
VaultTransitKeyCreationRequest . |
Plaintext |
decrypt(String keyName,
Ciphertext ciphertext)
Decrypts the provided plaintext using the named key.
|
List<VaultDecryptionResult> |
decrypt(String keyName,
List<Ciphertext> batchRequest)
Decrypts the provided barch of ciphertext using the named key and context.
|
String |
decrypt(String keyName,
String ciphertext)
Decrypts the provided plaintext using the named key.
|
byte[] |
decrypt(String keyName,
String ciphertext,
VaultTransitContext transitRequest)
Decrypts the provided plaintext using the named key.
|
void |
deleteKey(String keyName)
Deletes a named encryption key.
|
String |
encrypt(String keyName,
byte[] plaintext,
VaultTransitContext transitRequest)
Encrypts the provided plaintext using the named key.
|
List<VaultEncryptionResult> |
encrypt(String keyName,
List<Plaintext> batchRequest)
Encrypts the provided batch of plaintext using the named key and context.
|
Ciphertext |
encrypt(String keyName,
Plaintext plaintext)
Encrypts the provided plaintext using the named key.
|
String |
encrypt(String keyName,
String plaintext)
Encrypts the provided plaintext using the named key.
|
RawTransitKey |
exportKey(String keyName,
TransitKeyType type)
Returns the value of the named encryption key.
|
VaultTransitKey |
getKey(String keyName)
Return information about a named encryption key.
|
List<String> |
getKeys()
Get a
List of transit key names. |
String |
rewrap(String keyName,
String ciphertext)
Rewrap the provided ciphertext using the latest version of the named key.
|
String |
rewrap(String keyName,
String ciphertext,
VaultTransitContext transitRequest)
Rewrap the provided ciphertext using the latest version of the named key.
|
void |
rotate(String keyName)
Rotates the version of the named key.
|
void createKey(String keyName)
name
.keyName
- must not be empty or null.void createKey(String keyName, VaultTransitKeyCreationRequest createKeyRequest)
name
and
VaultTransitKeyCreationRequest
. The key options set here cannot be changed
after key creation.keyName
- must not be empty or null.createKeyRequest
- must not be null.void configureKey(String keyName, VaultTransitKeyConfiguration keyConfiguration)
name
.keyName
- must not be empty or null.keyConfiguration
- must not be null.RawTransitKey exportKey(String keyName, TransitKeyType type)
keyName
- must not be empty or null.type
- must not be null.RawTransitKey
.VaultTransitKey getKey(String keyName)
keyName
- must not be empty or null.VaultTransitKey
.void deleteKey(String keyName)
keyName
- must not be empty or null.void rotate(String keyName)
rewrap(String, String)
.keyName
- must not be empty or null.rewrap(String, String)
String encrypt(String keyName, String plaintext)
keyName
- must not be empty or null.plaintext
- must not be empty or null.Ciphertext encrypt(String keyName, Plaintext plaintext)
keyName
- must not be empty or null.plaintext
- must not be null.String encrypt(String keyName, byte[] plaintext, VaultTransitContext transitRequest)
keyName
- must not be empty or null.plaintext
- must not be empty or null.transitRequest
- may be null if no request options provided.List<VaultEncryptionResult> encrypt(String keyName, List<Plaintext> batchRequest)
keyName
- must not be empty or null.batchRequest
- a list of Plaintext
which includes plaintext and an
optional context.batchRequest
plaintexts.String decrypt(String keyName, String ciphertext)
keyName
- must not be empty or null.ciphertext
- must not be empty or null.Plaintext decrypt(String keyName, Ciphertext ciphertext)
keyName
- must not be empty or null.ciphertext
- must not be null.byte[] decrypt(String keyName, String ciphertext, VaultTransitContext transitRequest)
keyName
- must not be empty or null.ciphertext
- must not be empty or null.transitRequest
- may be null if no request options provided.List<VaultDecryptionResult> decrypt(String keyName, List<Ciphertext> batchRequest)
keyName
- must not be empty or null.batchRequest
- a list of Ciphertext
which includes plaintext and an
optional context.batchRequest
ciphertexts.String rewrap(String keyName, String ciphertext)
keyName
- must not be empty or null.ciphertext
- must not be empty or null.rotate(String)
String rewrap(String keyName, String ciphertext, VaultTransitContext transitRequest)
keyName
- must not be empty or null.ciphertext
- must not be empty or null.transitRequest
- may be null if no request options provided.rotate(String)
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.