Class GetKv1.Response

  • All Implemented Interfaces:
    Secret
    Enclosing class:
    GetKv1

    public static final class GetKv1.Response
    extends ApiJsonParser
    implements Secret
    Response object parsed from JSON returned by the RestApi.
    • Method Detail

      • path

        public String path()
        Description copied from interface: Secret
        Path of this secret.
        Specified by:
        path in interface Secret
        Returns:
        path in the vault, relative to mount point
      • value

        public Optional<String> value​(String key)
        Description copied from interface: Secret
        Value of a key within a secret.
        Specified by:
        value in interface Secret
        Parameters:
        key - key of the secret's value
        Returns:
        value if the key exists
      • values

        public Map<String,​String> values()
        Description copied from interface: Secret
        A map of secret values (key/value pairs).
        Specified by:
        values in interface Secret
        Returns:
        a map of all values available