Class VaultHmacRequest

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

public class VaultHmacRequest extends Object
Request for a HMAC Digest.
Since:
2.0
Author:
Luander Ribeiro, Mark Paluch
  • Method Details

    • builder

      Returns:
      a new instance of VaultHmacRequest.VaultHmacRequestBuilder.
    • create

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

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

      public @Nullable String getAlgorithm()
      Returns:
      algorithm used for creating the digest or null to use the default algorithm.
    • getKeyVersion

      public @Nullable Integer getKeyVersion()
      Returns:
      version of the key used or null to use the the latest version.