Class StaticCredentialsResolver
java.lang.Object
com.northconcepts.datapipeline.security.StaticCredentialsResolver
- All Implemented Interfaces:
CredentialsResolver
A
CredentialsResolver that always returns the same fixed Credentials.
Suitable for development and as the delegation target for legacy literal-credential setters. Prefer a rotating resolver (file, supplied, caching) backed by a secret store in production.
-
Constructor Summary
ConstructorsConstructorDescriptionStaticCredentialsResolver(Credentials credentials) StaticCredentialsResolver(String... keyValuePairs) Creates a resolver from alternating key-value pairs:new StaticCredentialsResolver(Credentials.USERNAME, "scott", Credentials.PASSWORD, "tiger"). -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.security.CredentialsResolver
isRotating, refresh
-
Constructor Details
-
StaticCredentialsResolver
-
StaticCredentialsResolver
Creates a resolver from alternating key-value pairs:new StaticCredentialsResolver(Credentials.USERNAME, "scott", Credentials.PASSWORD, "tiger").
-
-
Method Details
-
getCredentials
Description copied from interface:CredentialsResolverResolves and returns the current credentials. Must not returnnull.- Specified by:
getCredentialsin interfaceCredentialsResolver
-
toString
-