public class KeyValueDelegate extends Object
sys/internal/ui/mounts
to determine mount
information.Constructor and Description |
---|
KeyValueDelegate(VaultOperations operations) |
KeyValueDelegate(VaultOperations operations,
Supplier<Map<String,?>> cacheSupplier) |
Modifier and Type | Method and Description |
---|---|
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.Copyright © 2016–2024 Pivotal Software, Inc.. All rights reserved.