Class SuppliedCredentialsResolver
java.lang.Object
com.northconcepts.datapipeline.security.SuppliedCredentialsResolver
- All Implemented Interfaces:
CredentialsResolver
A
CredentialsResolver that delegates each resolve to a Supplier.
The one-liner bridge to external secret stores (Vault, AWS Secrets Manager, KMS, STS, ...)
without implementing CredentialsResolver directly:
new SuppliedCredentialsResolver(() -> Credentials.of(
Credentials.USERNAME, vault.read("ftp/user"),
Credentials.PASSWORD, vault.read("ftp/password")));
Wrap in a CachingCredentialsResolver when the supplier is expensive to call.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves and returns the current credentials.booleanIndicates if this resolver can return different credentials over time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.security.CredentialsResolver
refresh
-
Constructor Details
-
SuppliedCredentialsResolver
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsResolverResolves and returns the current credentials. Must not returnnull.- Specified by:
getCredentialsin interfaceCredentialsResolver
-
isRotating
public boolean isRotating()Description copied from interface:CredentialsResolverIndicates if this resolver can return different credentials over time. The default implementation returnsfalse.- Specified by:
isRotatingin interfaceCredentialsResolver
-