public static class VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder extends Object
VaultSignatureVerificationRequest
.Constructor and Description |
---|
VaultSignatureVerificationRequestBuilder() |
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(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 hashAlgorithm(String hashAlgorithm)
hashAlgorithm
- Specify the hash algorithm to be used for the operation.
Supported algorithms are: sha1, sha2-224,
sha2-256, sha2-384, sha2-512. Defaults to
sha2-256 if not set.this
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder signatureAlgorithm(String signatureAlgorithm)
signatureAlgorithm
- Specify the signature algorithm to be used for the
operation. Supported algorithms are: pss, pkcs1v15.
Defaults to pss if not set.this
VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder
.@Deprecated public VaultSignatureVerificationRequest.VaultSignatureVerificationRequestBuilder algorithm(String algorithm)
signatureAlgorithm(String)
instead.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–2022 Pivotal Software, Inc.. All rights reserved.