Class ListSecrets.Request

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

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

    • builder

      public static ListSecrets.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
    • create

      public static ListSecrets.Request create()
      Create with an empty path.
      Returns:
      new request
    • create

      public static ListSecrets.Request create(String path)
      Create with a path.
      Parameters:
      path - path to use
      Returns:
      new request
    • path

      public ListSecrets.Request path(String path)
      Configure the path to list, may be ignored by specific secret engines.
      Parameters:
      path - path to list
      Returns:
      updated request
    • path

      public Optional<String> path()
      Path to read, may be empty for root (or secret engines that do not support path).
      Returns:
      path to list