All Implemented Interfaces:
ApiRequest<Hmac.Request>
Enclosing class:
Hmac

public static class Hmac.Request extends VaultRequest<Hmac.Request>
Request object. Can be configured with additional headers, query parameters etc.
  • Field Details

  • Method Details

    • builder

      public static Hmac.Request builder()
      Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method is ApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory) used by the RestApi.
      Returns:
      new request builder
    • hmacKeyName

      public Hmac.Request hmacKeyName(String signatureKeyName)
      Specifies the name of the encryption key to sign against. Required.
      Parameters:
      signatureKeyName - name of the key
      Returns:
      updated request
    • hmacKeyVersion

      public Hmac.Request hmacKeyVersion(int version)
      Specifies the version of the key to use for signatures. If not set, uses the latest version. Must be greater than or equal to the key's min_encryption_version, if set. Optional.
      Parameters:
      version - key version
      Returns:
      updated request
    • data

      public Hmac.Request data(Base64Value value)
      The data to sign.
      Parameters:
      value - value to encrypt
      Returns:
      updated request
      See Also:
    • hashAlgorithm

      public Hmac.Request hashAlgorithm(String hashAlgorithm)
      Specifies the hash algorithm to use for supporting key types (notably, not including ed25519 which specifies its own hash algorithm). See hash algorithm constants on this class.
      Parameters:
      hashAlgorithm - algorithm to use
      Returns:
      updated request