Class CredentialsResolverRegistry
java.lang.Object
com.northconcepts.datapipeline.security.CredentialsResolverRegistry
A thread-safe mapping of logical ids to
CredentialsResolvers, enabling
"reference, not secret" late binding: serialized pipelines and sources/sinks carry only a
resolver id and are re-wired to the live resolver on load.
Use getSystemRegistry() for a shared JVM-wide registry, or construct private
instances for application-managed scopes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String id, CredentialsResolver resolver) Registers the resolver under the given id, replacing any resolver already registered with that id.Returns the resolver registered under the given id ornullif there isn't one.intgetCount()getIds()Returns a read-only view of the registered ids.static CredentialsResolverRegistryReturns the shared JVM-wide registry.Unregisters and returns the resolver for the given id or returnsnullif there isn't one.Returns the resolver registered under the given id or throws aDataExceptionif there isn't one.
-
Constructor Details
-
CredentialsResolverRegistry
public CredentialsResolverRegistry()
-
-
Method Details
-
getSystemRegistry
Returns the shared JVM-wide registry. -
add
Registers the resolver under the given id, replacing any resolver already registered with that id. -
get
Returns the resolver registered under the given id ornullif there isn't one. -
require
Returns the resolver registered under the given id or throws aDataExceptionif there isn't one.- Throws:
DataException
-
remove
Unregisters and returns the resolver for the given id or returnsnullif there isn't one. -
getIds
Returns a read-only view of the registered ids. -
getCount
public int getCount()
-