Class VaultSignRequest

java.lang.Object
org.springframework.vault.support.VaultSignRequest

public class VaultSignRequest extends Object
Request for a signature creation request.
Since:
2.0
Author:
Luander Ribeiro, Mark Paluch, My-Lan Aragon, Nanne Baars
  • Method Details

    • builder

      Returns:
      a new instance of VaultSignRequest.VaultSignRequestBuilder.
    • create

      public static VaultSignRequest create(Plaintext input)
      Create a new VaultSignRequest given Plaintext. Uses the default algorithm.
      Returns:
      a new VaultSignRequest for the given input.
    • getPlaintext

      public Plaintext getPlaintext()
      Returns:
      plain text input used as basis to generate the signature.
    • getHashAlgorithm

      public @Nullable String getHashAlgorithm()
      Returns:
      hashAlgorithm used for creating the signature or null to use the default hash algorithm.
      Since:
      2.4
    • getSignatureAlgorithm

      public @Nullable String getSignatureAlgorithm()
      Returns:
      signatureAlgorithm used for creating the signature when using an RSA key or null to use the default signature algorithm.
      Since:
      2.4
    • isPrehashed

      public boolean isPrehashed()
      Returns:
      true if the input is already hashed.
      Since:
      3.1