java.lang.Object
io.helidon.integrations.vault.auths.k8s.K8sVaultAuth.Builder
All Implemented Interfaces:
Builder<K8sVaultAuth.Builder,K8sVaultAuth>, Supplier<K8sVaultAuth>
Enclosing class:
K8sVaultAuth

public static class K8sVaultAuth.Builder extends Object implements Builder<K8sVaultAuth.Builder,K8sVaultAuth>
Fluent API builder for K8sVaultAuth.
  • Method Details

    • build

      public K8sVaultAuth build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<K8sVaultAuth.Builder,K8sVaultAuth>
      Returns:
      instance of the built type
    • serviceAccountToken

      public K8sVaultAuth.Builder serviceAccountToken(String serviceAccountToken)
      The k8s service account token.
      Parameters:
      serviceAccountToken - service account token
      Returns:
      updated builder
    • tokenRole

      public K8sVaultAuth.Builder tokenRole(String tokenRole)
      The token role used for authentication.
      Parameters:
      tokenRole - token role name
      Returns:
      updated builder
    • tokenLocation

      public K8sVaultAuth.Builder tokenLocation(String tokenLocation)
      File with the k8s service account token.
      Parameters:
      tokenLocation - path to service account token
      Returns:
      updated builder
    • path

      public K8sVaultAuth.Builder path(String path)
      Custom method path.
      Parameters:
      path - path of the k8s method, defaults to K8sAuthRx.AUTH_METHOD default path
      Returns:
      updated builder