Correct assertion message in decrypt.
Closes gh-550 Original pull request: gh-551
This commit is contained in:
@@ -264,7 +264,7 @@ public class VaultTransitTemplate implements VaultTransitOperations {
|
|||||||
@Override
|
@Override
|
||||||
public Plaintext decrypt(String keyName, Ciphertext ciphertext) {
|
public Plaintext decrypt(String keyName, Ciphertext ciphertext) {
|
||||||
|
|
||||||
Assert.hasText(keyName, "Ciphertext must not be null");
|
Assert.hasText(keyName, "keyName must not be null");
|
||||||
|
|
||||||
byte[] plaintext = decrypt(keyName, ciphertext.getCiphertext(),
|
byte[] plaintext = decrypt(keyName, ciphertext.getCiphertext(),
|
||||||
ciphertext.getContext());
|
ciphertext.getContext());
|
||||||
|
|||||||
Reference in New Issue
Block a user