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
  • Constructor Details

    • SessionConfigSource

      public SessionConfigSource()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.eclipse.microprofile.config.spi.ConfigSource
    • getOrdinal

      public int getOrdinal()
      Specified by:
      getOrdinal in interface org.eclipse.microprofile.config.spi.ConfigSource
    • getProperties

      public Map<String,String> getProperties()
      Specified by:
      getProperties in interface org.eclipse.microprofile.config.spi.ConfigSource
    • getPropertyNames

      public Set<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface org.eclipse.microprofile.config.spi.ConfigSource
    • getValue

      public String getValue(String propertyName)
      Specified by:
      getValue in interface org.eclipse.microprofile.config.spi.ConfigSource