Class VaultSignatureVerificationRequest
java.lang.Object
org.springframework.vault.support.VaultSignatureVerificationRequest
Request for a signature verification.
- Since:
- 2.0
- Author:
- Luander Ribeiro, Mark Paluch, My-Lan Aragon, James Luke
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder to build aVaultSignatureVerificationRequest
. -
Method Summary
-
Method Details
-
builder
- Returns:
- a new instance of
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.
-
create
- Parameters:
plaintext
- the plaintext, must not be null.signature
- the signature, must not be null.- Returns:
- a new
VaultSignatureVerificationRequest
forPlaintext
andSignature
.
-
create
- Parameters:
plaintext
- the plaintext, must not be null.hmac
- the hmac, must not be null.- Returns:
- a new
VaultSignatureVerificationRequest
forPlaintext
andHmac
.
-
getPlaintext
- Returns:
- plain text input used as basis to verify the signature.
-
getSignature
- Returns:
- signature resulting of a sign operation, can be null if HMAC is used.
-
getHmac
- Returns:
- digest resulting of a Hmac operation, can be null if Signature is used.
-
getHashAlgorithm
- Returns:
- hash algorithm used for verifying the signature or null to use the default algorithm.
- Since:
- 2.4
-
getSignatureAlgorithm
- Returns:
- signature algorithm used for verifying the signature when using an RSA key or null to use the default algorithm.
- Since:
- 2.4
-
getAlgorithm
Deprecated.since 2.4, usegetSignatureAlgorithm()
instead.- Returns:
- algorithm used for verifying the signature or null to use the default algorithm.
-
getSignatureAlgorithm()
instead.