Class VaultHmacRequest.VaultHmacRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultHmacRequest.VaultHmacRequestBuilder
- Enclosing class:
- VaultHmacRequest
Builder to build a
VaultHmacRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConfigure the algorithm to be used for the operation.build()
Build a newVaultHmacRequest
instance.keyVersion
(int version) Configure the key version to be used for the operation.Configure the input to be used to create the digest.
-
Constructor Details
-
VaultHmacRequestBuilder
public VaultHmacRequestBuilder()
-
-
Method Details
-
plaintext
Configure the input to be used to create the digest.- Parameters:
input
- base input to create the digest, must not be null.- Returns:
this
VaultHmacRequest.VaultHmacRequestBuilder
.
-
algorithm
Configure the algorithm to be used for the operation.- Parameters:
algorithm
- Specify the algorithm to be used for the operation. Supported algorithms are: sha2-224, sha2-256, sha2-384, sha2-512. Defaults to sha2-256 if not set.- Returns:
this
VaultHmacRequest.VaultHmacRequestBuilder
.
-
keyVersion
Configure the key version to be used for the operation.- Parameters:
version
- key version to be used. If not set, uses the latest version.- Returns:
this
VaultHmacRequest.VaultHmacRequestBuilder
.
-
build
Build a newVaultHmacRequest
instance. Requiresplaintext(Plaintext)
to be configured.- Returns:
- a new
VaultHmacRequest
.
-