Class VaultHmacRequest.VaultHmacRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultHmacRequest.VaultHmacRequestBuilder
- Enclosing class:
- VaultHmacRequest
Builder to build a
VaultHmacRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfigure the algorithm to be used for the operation.build()Build a newVaultHmacRequestinstance.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:
thisVaultHmacRequest.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:
thisVaultHmacRequest.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:
thisVaultHmacRequest.VaultHmacRequestBuilder.
-
build
Build a newVaultHmacRequestinstance. Requiresplaintext(Plaintext)to be configured.- Returns:
- a new
VaultHmacRequest.
-