public class VaultBytesEncryptor extends Object implements BytesEncryptor
BytesEncryptor
using Vault's transit backend.
Encryption/decryption is bound to a particular key that must support encryption and
decryption.Constructor and Description |
---|
VaultBytesEncryptor(VaultTransitOperations transitOperations,
String keyName)
|
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] ciphertext) |
byte[] |
encrypt(byte[] plaintext) |
public VaultBytesEncryptor(VaultTransitOperations transitOperations, String keyName)
transitOperations
- must not be null.keyName
- must not be null or empty.public byte[] encrypt(byte[] plaintext)
encrypt
in interface BytesEncryptor
public byte[] decrypt(byte[] ciphertext)
decrypt
in interface BytesEncryptor
Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.