Class VaultSignRequest.VaultSignRequestBuilder
java.lang.Object
org.springframework.vault.support.VaultSignRequest.VaultSignRequestBuilder
- Enclosing class:
- VaultSignRequest
Builder to build a
VaultSignRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.build()Build a newVaultSignRequestinstance.hashAlgorithm(String hashAlgorithm) Configure the hash algorithm to be used for the operation.Configure the input to be used to create the signature.signatureAlgorithm(String signatureAlgorithm) Configure the signature algorithm to be used for the operation when using an RSA key.
-
Constructor Details
-
VaultSignRequestBuilder
public VaultSignRequestBuilder()
-
-
Method Details
-
plaintext
Configure the input to be used to create the signature.- Parameters:
input- base input to create the signature, must not be null.- Returns:
thisVaultSignRequest.VaultSignRequestBuilder.
-
hashAlgorithm
Configure the hash algorithm to be used for the operation.- Parameters:
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.- Returns:
thisVaultSignRequest.VaultSignRequestBuilder.
-
signatureAlgorithm
Configure the signature algorithm to be used for the operation when using an RSA key.- Parameters:
signatureAlgorithm- Specify the signature algorithm to be used for the operation. Supported algorithms are: pss, pkcs1v15. Defaults to pss if not set.- Returns:
thisVaultSignRequest.VaultSignRequestBuilder.
-
algorithm
@Deprecated(since="2.4") public VaultSignRequest.VaultSignRequestBuilder algorithm(String algorithm) Deprecated.since 2.4, usesignatureAlgorithm(String)instead.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:
thisVaultSignRequest.VaultSignRequestBuilder.
-
build
Build a newVaultSignRequestinstance. Requiresplaintext(Plaintext)to be configured.- Returns:
- a new
VaultSignRequest.
-
signatureAlgorithm(String)instead.