public static class VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder extends Object
VaultSignatureVerificationRequest
.Constructor and Description |
---|
VaultSignatureVerificationRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder |
algorithm(String algorithm)
Configure the algorithm to be used for the operation.
|
VaultSignatureVerificationRequest |
build()
Build a new
VaultSignatureVerificationRequest instance. |
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder |
hmac(Hmac hmac)
Configure the
Hmac to be verified. |
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder |
plaintext(Plaintext input)
Configure the
Plaintext input to be used to verify the signature. |
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder |
signature(Signature signature)
Configure the
Signature to be verified. |
public VaultSignatureVerificationRequestBuilder()
public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder plaintext(Plaintext input)
Plaintext
input to be used to verify the signature.input
- base input, must not be null.this
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder signature(Signature signature)
Signature
to be verified. Signature verification requires
either a Signature
or a hmac(Hmac)
to be configured. Clears
any previously configured HMAC
.signature
- to be verified, must not be null.this
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder hmac(Hmac hmac)
Hmac
to be verified. Signature verification requires
either a Hmac
or a signature(Signature)
to be configured.
Clears any previously configured Signature
.hmac
- to be verified, must not be null.this
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder 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
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.public VaultSignatureVerificationRequest build()
VaultSignatureVerificationRequest
instance. Requires
plaintext(Plaintext)
and one of hmac(Hmac)
,
signature(Signature)
to be configured.VaultHmacRequest
.Copyright © 2016–2019 Pivotal Software, Inc.. All rights reserved.