public class KeyValueDelegate extends Object
sys/internal/ui/mounts
to determine mount
information.Modifier and Type | Class and Description |
---|---|
static class |
KeyValueDelegate.MountInfo |
Constructor and Description |
---|
KeyValueDelegate(VaultOperations operations) |
KeyValueDelegate(VaultOperations operations,
Supplier<Map<String,?>> cacheSupplier) |
Modifier and Type | Method and Description |
---|---|
KeyValueDelegate.MountInfo |
getMountInfo(String path) |
VaultResponse |
getSecret(String path)
Read a secret from a key-value backend.
|
boolean |
isVersioned(String path)
Determine whether the
path belongs to a versioned Key-Value mount. |
public KeyValueDelegate(VaultOperations operations)
public KeyValueDelegate(VaultOperations operations, Supplier<Map<String,?>> cacheSupplier)
public boolean isVersioned(String path)
path
belongs to a versioned Key-Value mount.path
- the path to inspect.path
belongs to a versioned Key-Value mount.@Nullable public VaultResponse getSecret(String path)
path
- the path to fetch the secret from.public KeyValueDelegate.MountInfo getMountInfo(String path)
Copyright © 2016–2022 Pivotal Software, Inc.. All rights reserved.