Package edu.iu.client

Interface IuVaultSecret


public interface IuVaultSecret
Represents a HashiCorp Vault K/V secret.
  • Method Details

    • getName

      String getName()
      Gets the secret name.
      Returns:
      secret name
    • getData

      JsonObject getData()
      Gets secret data as a JSON object.
      Returns:
      JsonObject
    • getMetadata

      IuVaultMetadata getMetadata()
      Gets K/V secret metadata.
      Returns:
      IuVaultMetadata
    • get

      <T> IuVaultKeyedValue<T> get(String key, Class<T> type)
      Gets a keyed value.
      Type Parameters:
      T - value type
      Parameters:
      key - key
      type - type
      Returns:
      keyed value
    • set

      <T> void set(String key, T value, Class<T> type)
      Sets a keyed value.
      Type Parameters:
      T - value type
      Parameters:
      key - key
      value - value
      type - type