Class VaultTokenBase

java.lang.Object
io.helidon.integrations.vault.VaultTokenBase
Direct Known Subclasses:
VaultToken

public abstract class VaultTokenBase extends Object
Abstract implementation of token that can be used to access the Vault.
  • Constructor Details

    • VaultTokenBase

      protected VaultTokenBase(VaultTokenBase.Builder<?,?> builder)
      Create a new instance using the provided builder.
      Parameters:
      builder - builder
  • Method Details

    • created

      public Instant created()
      When this token was created.
      Returns:
      time this token instance was created
    • token

      public String token()
      The token string.
      Returns:
      token
    • leaseDuration

      public Duration leaseDuration()
      Lease duration.
      Returns:
      lease duration
    • renewable

      public boolean renewable()
      Whether the token is renewable.
      Returns:
      if renewable