Class EnableEngine.Request

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

public static final class EnableEngine.Request extends VaultRequest<T>
Request object. Can be configured with additional headers, query parameters etc.
  • Method Details

    • builder

      public static EnableEngine.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
    • engine

      public EnableEngine.Request engine(Engine<?> engine)
      Secrets engine to enable. Custom path can be configured through path(String) if supported by the engine.
      Parameters:
      engine - secrets engine
      Returns:
      updated request
    • path

      public EnableEngine.Request path(String path)
      Specifies the path where the engine/method will be mounted. If no path is defined, the engine/method default path will be used.
      Parameters:
      path - path to configure
      Returns:
      updated request
    • description

      public EnableEngine.Request description(String description)
      Specifies the human-friendly description of the mount.
      Parameters:
      description - description
      Returns:
      updated request
    • defaultLeaseTtl

      public EnableEngine.Request defaultLeaseTtl(Duration defaultLeaseTtl)
      Default lease duration.
      Parameters:
      defaultLeaseTtl - lease time to live
      Returns:
      updated request
    • maxLeaseTtl

      public EnableEngine.Request maxLeaseTtl(Duration maxLeaseTtl)
      Maximum lease duration.
      Parameters:
      maxLeaseTtl - maximum lease time to live
      Returns:
      updated request
    • forceNoCache

      public EnableEngine.Request forceNoCache(boolean forceNoCache)
      Disable caching.

      Defaults to false.

      Parameters:
      forceNoCache - whether to disable caching
      Returns:
      updated request
    • addPassThroughHeader

      public EnableEngine.Request addPassThroughHeader(String passThroughHeader)
      Add header to whitelist and pass from the request to the plugin.
      Parameters:
      passThroughHeader - name of the header
      Returns:
      updated request
    • addAllowedResponseHeader

      public EnableEngine.Request addAllowedResponseHeader(String allowedResponseHeader)
      Header to whitelist, allowing a plugin to include them in the response.
      Parameters:
      allowedResponseHeader - name of the header
      Returns:
      updated request
    • postBuild

      protected void postBuild(JsonBuilderFactory factory, JsonObjectBuilder payload)
      Description copied from class: ApiJsonBuilder
      Called after adding properties defined in this request.
      Overrides:
      postBuild in class ApiJsonBuilder<T extends io.helidon.integrations.vault.sys.MountRequest<T>>
      Parameters:
      factory - json factory
      payload - payload builder
    • defaultPath

      protected void defaultPath(String defaultMount)