public interface CredentialsResolver
Credentials on demand.
Implementations may read literals, environment variables, files, or call out to secret stores
(Vault, AWS Secrets Manager, STS, KMS, ...). Endpoints call getCredentials() each time
they open — never at construction — so rotated secrets are picked up automatically on the
next connection. Implementations that resolve remotely should cache internally (see
CachingCredentialsResolver).
| Modifier and Type | Method and Description |
|---|---|
Credentials |
getCredentials()
Resolves and returns the current credentials.
|
default boolean |
isRotating()
Indicates if this resolver can return different credentials over time.
|
default void |
refresh()
Forces a re-fetch on the next call to
getCredentials(). |
Credentials getCredentials() throws DataException
null.DataExceptiondefault void refresh()
getCredentials(). The default implementation
does nothing.default boolean isRotating()
false.Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.