static <T extends Secret> SecretReference<T> |
SecretReference.active(SecretsProvider secretsProvider,
Purpose<T> purpose,
Clock clock) |
Creates a reference to the active secret for the given purpose using the given secrets provider.
|
<T extends Secret> T |
SecretBuilder.build(Class<T> secretType) |
Deprecated.
|
<T extends Secret> T |
SecretBuilder.build(Purpose<T> purpose) |
Builds a secret of the given type, enforcing any constraints attached to the
purpose.
|
static <T extends Secret> SecretReference<T> |
SecretReference.constant(T secret) |
Create a constant SecretReference for the given secret, that will never expire.
|
<S extends Secret> SecretReference<S> |
SecretsProvider.createActiveReference(Purpose<S> purpose) |
Creates the secret reference from the given purpose.
|
<S extends Secret> SecretReference<S> |
SecretsProvider.createNamedReference(Purpose<S> purpose,
String name) |
Creates a reference to a secret with the given name (stable id) for the given purpose.
|
<S extends Secret> Promise<S,NoSuchSecretException> |
SecretsProvider.getActiveSecret(Purpose<S> purpose) |
Gets the currently active secret for the given purpose.
|
<S extends Secret> Promise<Stream<S>,NeverThrowsException> |
SecretsProvider.getNamedOrValidSecrets(Purpose<S> purpose,
String id) |
If the given id is not null, then this returns the single named secret that corresponds to that stable id (or
a stream of valid secrets for the given purpose if no such secret exists), otherwise it returns all
valid secrets for the given purpose.
|
<S extends Secret> Promise<S,NoSuchSecretException> |
SecretsProvider.getNamedSecret(Purpose<S> purpose,
String id) |
Gets the secret for the given purpose with the given stable secret id.
|
<S extends Secret> Promise<Stream<S>,NeverThrowsException> |
SecretsProvider.getValidSecrets(Purpose<S> purpose) |
Returns all secrets for the given purpose which have not yet expired.
|
static <T extends Secret> SecretReference<T> |
SecretReference.named(SecretsProvider secretsProvider,
Purpose<T> purpose,
String name,
Clock clock) |
Creates a reference to a named secret using the given secrets provider.
|
static <T extends Secret> Purpose<T> |
Purpose.purpose(String label,
Class<T> type) |
Constructs a purpose object.
|
static <T extends Secret> Purpose<T> |
Purpose.purpose(String label,
Class<T> type,
SecretConstraint<? super T>... constraints) |
Constructs a purpose object.
|
protected <T extends Secret> void |
SecretsProvider.setActiveStore(SecretStore<? super T> store,
Purpose<? extends T> purpose) |
Sets the active store to use for the given purpose.
|
<T extends Secret> SecretsProvider |
SecretsProvider.setActiveStore(SecretStore<? super T> store,
Purpose<? extends T>... purposes) |
Sets the active store to use for the given purpose.
|
static <S extends Secret> ThreadPoolSecretStore<S> |
ThreadPoolSecretStore.wrap(SecretStore<S> store) |
|
static <S extends Secret> ThreadPoolSecretStore<S> |
ThreadPoolSecretStore.wrap(SecretStore<S> store,
ExecutorService executor) |
Wraps the given store in an asynchronous thread-pool executor using the given thread pool.
|