Class SessionCredentials

java.lang.Object
ai.redouble.demo.quarkus.SessionCredentials
All Implemented Interfaces:
SessionStore

@ApplicationScoped public class SessionCredentials extends Object implements SessionStore
The Quarkus host's store of credentials a person pastes into the page. It writes them into SessionConfigSource, the runtime config source read ahead of the deployment's own, so QuarkusSecrets sees them through ConfigProvider the way it sees any property - the runtime neither knows nor cares that the value arrived from a form. Nothing here is ever written to a file, echoed back over HTTP, or logged beyond the credential's id; stopping the process is the only place these values live.
Since:
0.1 (2026-09-24)
Author:
Andrey Santrosyan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this store holds any part of the credential - a session credential may be corrected, a deployment's never.
    void
    provide(String id, String user, String secret, String host)
    Holds one credential for the rest of this process: the id is the runtime's record name (anthropic-api-key, aws-region); user, secret and host are its parts, a blank part left unset.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionCredentials

      public SessionCredentials()
  • Method Details

    • provide

      public void provide(String id, String user, String secret, String host)
      Description copied from interface: SessionStore
      Holds one credential for the rest of this process: the id is the runtime's record name (anthropic-api-key, aws-region); user, secret and host are its parts, a blank part left unset. Effective from the next lookup.
      Specified by:
      provide in interface SessionStore
    • holds

      public boolean holds(String id)
      Description copied from interface: SessionStore
      Whether this store holds any part of the credential - a session credential may be corrected, a deployment's never.
      Specified by:
      holds in interface SessionStore