@Beta public interface SecureStore
SecureStoreManager
.Modifier and Type | Method and Description |
---|---|
SecureStoreData |
get(String namespace,
String name)
Returns the secret and its metadata for the given namespace and name.
|
default byte[] |
getData(String namespace,
String name)
Returns the secret data.
|
default SecureStoreMetadata |
getMetadata(String namespace,
String name)
Returns the metadata for the secret.
|
List<SecureStoreMetadata> |
list(String namespace)
List of metadata stored in the secure store.
|
List<SecureStoreMetadata> list(String namespace) throws Exception
namespace
- The namespace that this key belongs toSecureStoreMetadata
objects representing the data stored in the storeIOException
- If there was a problem reading from the keystoreException
- If the specified namespace does not existSecureStoreData get(String namespace, String name) throws Exception
getData(String, String)
if the metadata is not required.namespace
- The namespace that this key belongs toname
- Name of the data elementIOException
- If there was a problem reading from the storeException
- if the specified namespace or name does not existdefault SecureStoreMetadata getMetadata(String namespace, String name) throws Exception
namespace
- The namespace that this key belongs toname
- Name of the data elementIOException
- If there was a problem reading from the storeException
- if the specified namespace or name does not existdefault byte[] getData(String namespace, String name) throws Exception
namespace
- The namespace that this key belongs toname
- Name of the data elementIOException
- If there was a problem reading from the storeException
- if the specified namespace or name does not existCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.