Package com.svenruppert.jsentinel.credential.propagation
package com.svenruppert.jsentinel.credential.propagation
V00.74 declarative token-propagation SPIs.
This package owns the four building blocks every downstream V00.74 module composes:
TokenCredential— sealed type for inbound / outbound tokens.TokenCredentialStore— per-subject store the runtime and compile-time wrappers read.OutboundTokenStrategy— pluggable "how does this token reach the downstream call" SPI.PassThroughStrategy— the core default.
Every public type in this package is annotated
ExperimentalJSentinelApi.
V00.74 ships the surface; stable-API promotion is staged for V00.76 after
at least one real demo adoption.
Discipline: TokenCredential#value() is the raw
token. It is never logged, never persisted, never audited. Every record
subtype masks the value in toString(). The same discipline applies
to the V00.71 PasswordHash surface — see Konzept-V00.71 §1.
- Since:
- 00.74.00
-
ClassDescriptionOpaque API key.Opaque bearer token, typically carried as
Authorization: Bearer <value>.Result of anOutboundTokenStrategy— a single HTTP header the consumer's HTTP client applies before sending.Single-slot in-memory store.OIDC access token.Input record forOutboundTokenStrategy.resolve(OutboundCall, java.util.Optional).Thread-local bridge between the V00.74 wrapper (runtimePropagatingProxyor compile-time<Type>Propagating) and the application's HTTP client.Pluggable "how does the inbound token reach the downstream call" SPI.DefaultOutboundTokenStrategy— forwards a bearer-style inbound token asAuthorization: Bearer <value>.Pluggable advisor that turns aPropagateToken-annotated call + the currentTokenCredentialinto anHeaderValueto bind on the outbound HTTP request.Stateless default advisor: looks up the strategy byPropagateToken.strategy()viaJSentinelServiceResolver.findOutboundTokenStrategy(String), calls itsresolvewith the store's current credential, and — whenPropagateToken.header()is non-empty — overrides the strategy's chosen header name.Refresh token.Marker forTokenCredentialStoreimplementations that are safe to use from multiple threads.Sealed type for inbound / outbound tokens flowing through the V00.74 token-propagation pipeline.Persistence-neutral store for the current subject'sTokenCredential.