public static class VaultHmacRequest.VaultHmacRequestBuilder extends Object
VaultHmacRequest
.Constructor and Description |
---|
VaultHmacRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
VaultHmacRequest.VaultHmacRequestBuilder |
algorithm(String algorithm)
Configure the algorithm to be used for the operation.
|
VaultHmacRequest |
build()
Build a new
VaultHmacRequest instance. |
VaultHmacRequest.VaultHmacRequestBuilder |
keyVersion(int version)
Configure the key version to be used for the operation.
|
VaultHmacRequest.VaultHmacRequestBuilder |
plaintext(Plaintext input)
Configure the input to be used to create the digest.
|
public VaultHmacRequest.VaultHmacRequestBuilder plaintext(Plaintext input)
input
- base input to create the digest, must not be null.this
VaultHmacRequest.VaultHmacRequestBuilder
.public VaultHmacRequest.VaultHmacRequestBuilder algorithm(String algorithm)
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.this
VaultHmacRequest.VaultHmacRequestBuilder
.public VaultHmacRequest.VaultHmacRequestBuilder keyVersion(int version)
version
- key version to be used. If not set, uses the latest version.this
VaultHmacRequest.VaultHmacRequestBuilder
.public VaultHmacRequest build()
VaultHmacRequest
instance. Requires
plaintext(Plaintext)
to be configured.VaultHmacRequest
.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.