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

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

    • builder

      public static Login.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 Login.Request create(String roleId, String secretId)
      Create a new request.
      Parameters:
      roleId - role ID to use
      secretId - secret ID to use
      Returns:
      new request
    • roleId

      public Login.Request roleId(String roleId)
      Role ID of the AppRole. This is the ID, not the name. Use AppRoleAuthRx.readRoleId(String) or UI to obtain the id.
      Parameters:
      roleId - role ID
      Returns:
      updated request
    • secretId

      public Login.Request secretId(String secretId)
      Secret ID.
      Parameters:
      secretId - secret ID associated with the AppRole.
      Returns:
      updated request