Module agentforge4j.bootstrap
Package com.agentforge4j.bootstrap
Class EnvSystemPropertyLlmSecretResolver
java.lang.Object
com.agentforge4j.bootstrap.EnvSystemPropertyLlmSecretResolver
- All Implemented Interfaces:
LlmSecretResolver
Default
LlmSecretResolver for the embeddable bootstrap path. A literal reference passes its value through; an
indirect reference is resolved against the process environment (env:KEY → System.getenv(String)) or
system properties (sysprop:KEY → System.getProperty(String)).
An explicit reference names the exact variable, so it is unaffected by the
AGENTFORGE4J_* auto-discovery key normalization. Resolution is fail-fast and secret-safe: an unknown scheme
or unresolved reference throws LlmProviderConfigurationException naming only the scheme:key, never a
value.
Public so framework layers (for example the Spring starter) can reuse it as the default resolver: an already-resolved property value is wrapped as a literal reference and passed through.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the default environment / system-property resolver. -
Method Summary
Modifier and TypeMethodDescriptionresolve(LlmSecretReference reference) Resolves a credential reference to its live value.
-
Constructor Details
-
EnvSystemPropertyLlmSecretResolver
public EnvSystemPropertyLlmSecretResolver()Creates the default environment / system-property resolver.
-
-
Method Details
-
resolve
Description copied from interface:LlmSecretResolverResolves a credential reference to its live value.- Specified by:
resolvein interfaceLlmSecretResolver- Parameters:
reference- the reference to resolve; must not benull- Returns:
- the resolved secret; never
null
-