public interface HashiCorpVaultCommunicationService
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(String transitPath,
String cipherText)
Decrypts the given cipher text using Vault's Transit Secrets Engine.
|
String |
encrypt(String transitPath,
byte[] plainText)
Encrypts the given plaintext using Vault's Transit Secrets Engine.
|
Optional<String> |
readKeyValueSecret(String keyValuePath,
String secretKey)
Reads a single secret value from Vault's unversioned Key/Value Secrets Engine.
|
Map<String,String> |
readKeyValueSecretMap(String keyValuePath,
String secretKey)
Reads a secret with multiple key/value pairs from Vault's unversioned Key/Value Secrets Engine.
|
void |
writeKeyValueSecret(String keyValuePath,
String secretKey,
String value)
Writes a single secret value using Vault's unversioned Key/Value Secrets Engine.
|
void |
writeKeyValueSecretMap(String keyValuePath,
String secretKey,
Map<String,String> keyValues)
Writes a secret with multiple key/value pairs using Vault's unversioned Key/Value Secrets Engine.
|
String encrypt(String transitPath, byte[] plainText)
transitPath - The Vault path to use for the configured Transit Secrets EngineplainText - The plaintext to encryptbyte[] decrypt(String transitPath, String cipherText)
transitPath - The Vault path to use for the configured Transit Secrets EnginecipherText - The cipher text to decryptvoid writeKeyValueSecret(String keyValuePath, String secretKey, String value)
keyValuePath - The Vault path to use for the configured Key/Value v1 Secrets EnginesecretKey - The secret keyvalue - The secret valueOptional<String> readKeyValueSecret(String keyValuePath, String secretKey)
keyValuePath - The Vault path to use for the configured Key/Value v1 Secrets EnginesecretKey - The secret keyvoid writeKeyValueSecretMap(String keyValuePath, String secretKey, Map<String,String> keyValues)
keyValuePath - The Vault path to use for the configured Key/Value v1 Secrets EnginekeyValues - A map from key to value for keys/values that should be stored in the secretMap<String,String> readKeyValueSecretMap(String keyValuePath, String secretKey)
keyValuePath - The Vault path to use for the configured Key/Value v1 Secrets EnginesecretKey - The secret keyCopyright © 2022 Apache NiFi Project. All rights reserved.