Class SessionConfigSource
java.lang.Object
ai.redouble.demo.quarkus.SessionConfigSource
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSource
public class SessionConfigSource
extends Object
implements org.eclipse.microprofile.config.spi.ConfigSource
A MicroProfile config source over the credentials a person pastes into the page, held in memory
for this process only. It is the Quarkus analog of the property source the Spring host inserts
ahead of the rest: the runtime's
QuarkusSecrets reads nucleo.credentials.<id>
through ConfigProvider on every lookup, so a value put here is seen the next time a
provider asks for its credential, through the same path application.properties, a system
property or an environment variable uses. Its ordinal sits above those so a session value fills
a gap the deployment left; a credential the deployment itself configures is refused upstream, in
CatalogAdmin, so this source never shadows one.
The values live in a static map because the config machinery loads this source through the
service loader while SessionCredentials, a CDI bean, is what writes to it; both reach the
one map. Nothing here is ever written to a file, echoed back over HTTP, or logged.
- Since:
- 0.1 (2026-09-24)
- Author:
- Andrey Santrosyan
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SessionConfigSource
public SessionConfigSource()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getOrdinal
public int getOrdinal()- Specified by:
getOrdinalin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getProperties
-
getPropertyNames
-
getValue
-