All Known Subinterfaces:
DbCredentials, Kv2Secret
All Known Implementing Classes:
DbGet.Response, GetCubbyhole.Response, GetKv1.Response, GetKv2.Response

public interface Secret
Common methods for secrets. The methods value(String) and values() may have different semantic meaning depending on secrets engine used, please check documentation of subclasses.
  • Method Details

    • path

      String path()
      Path of this secret.
      Returns:
      path in the vault, relative to mount point
    • value

      Optional<String> value(String key)
      Value of a key within a secret.
      Parameters:
      key - key of the secret's value
      Returns:
      value if the key exists
    • values

      Map<String,String> values()
      A map of secret values (key/value pairs).
      Returns:
      a map of all values available