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 CryptoKey> KeyStore |
SecretsProvider.asKeyStore(Purpose<T> purpose) |
Returns a view of this secrets provider as a keystore for the given purpose.
|
<T extends Secret> T |
SecretBuilder.build(Purpose<T> purpose) |
Builds a secret of the given type, enforcing any constraints attached to the
purpose.
|
<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.
|
default <S extends T> Promise<S,NoSuchSecretException> |
SecretStore.getActive(Purpose<S> purpose) |
Returns the active secret for the given purpose.
|
<S extends T> Promise<S,NoSuchSecretException> |
ThreadPoolSecretStore.getActive(Purpose<S> purpose) |
|
<S extends Secret> Promise<S,NoSuchSecretException> |
SecretsProvider.getActiveSecret(Purpose<S> purpose) |
Gets the currently active secret for the given purpose.
|
X509ExtendedKeyManager |
SecretsProvider.getKeyManager(Purpose<? extends CryptoKey> purpose) |
|
X509ExtendedKeyManager |
SecretsProvider.getKeyManager(Purpose<? extends CryptoKey> purpose,
Options options) |
|
default <S extends T> Promise<S,NoSuchSecretException> |
SecretStore.getNamed(Purpose<S> purpose,
String name) |
Returns the named secret from this store.
|
<S extends T> Promise<S,NoSuchSecretException> |
ThreadPoolSecretStore.getNamed(Purpose<S> purpose,
String name) |
|
<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.
|
SecretsTrustManager |
SecretsProvider.getTrustManager(Purpose<? extends CryptoKey> purpose) |
Constructs an X509ExtendedTrustManager that will retrieve certificates from this secrets
provider for the provided purpose.
|
SecretsTrustManager |
SecretsProvider.getTrustManager(Purpose<? extends CryptoKey> purpose,
Options options) |
Constructs an X509ExtendedTrustManager that will retrieve certificates from this secrets
provider for the provided purpose.
|
<S extends T> Promise<Stream<S>,NeverThrowsException> |
SecretStore.getValid(Purpose<S> purpose) |
Returns all valid secrets for the given purpose from this store.
|
<S extends T> Promise<Stream<S>,NeverThrowsException> |
ThreadPoolSecretStore.getValid(Purpose<S> purpose) |
|
<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.
|
default void |
SecretStore.retire(Purpose<? extends T> purpose,
String secretIdToRetire) |
Retires the given secret for the given purpose.
|
void |
ThreadPoolSecretStore.retire(Purpose<? extends T> purpose,
String secretIdToRetire) |
|
default void |
SecretStore.rotate(Purpose<? extends T> purpose,
String newActiveSecretId) |
Rotates the active secret for the given purpose.
|
void |
ThreadPoolSecretStore.rotate(Purpose<? extends T> purpose,
String newActiveSecretId) |
|
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.
|