Class FileCredentialsResolver
java.lang.Object
com.northconcepts.datapipeline.security.FileCredentialsResolver
- All Implemented Interfaces:
CredentialsResolver
A
CredentialsResolver that reads credential values from a Java properties file,
re-reading it whenever the file's last-modified time changes.
Each property becomes one credential entry. Suitable for mounted secret files that an orchestrator rotates in place (for example, Kubernetes secret volume remounts).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves and returns the current credentials.getFile()booleanIndicates if this resolver can return different credentials over time.voidrefresh()Forces a re-fetch on the next call toCredentialsResolver.getCredentials().toString()
-
Constructor Details
-
FileCredentialsResolver
-
FileCredentialsResolver
-
-
Method Details
-
getFile
-
getCredentials
Description copied from interface:CredentialsResolverResolves and returns the current credentials. Must not returnnull.- Specified by:
getCredentialsin interfaceCredentialsResolver
-
refresh
public void refresh()Description copied from interface:CredentialsResolverForces a re-fetch on the next call toCredentialsResolver.getCredentials(). The default implementation does nothing.- Specified by:
refreshin 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
-
toString
-