Interface PropagateTokenAdvisor
- All Known Implementing Classes:
PropagateTokenAdvisor.Default
@ExperimentalJSentinelApi("V00.74 token propagation; stable promotion staged for V00.76")
public interface PropagateTokenAdvisor
Pluggable advisor that turns a
PropagateToken-annotated call
+ the current TokenCredential into an HeaderValue to
bind on the outbound HTTP request.
Crucially, this is not an
AccessEvaluator: it never produces an access decision. The
advisor either returns a header (bind it) or empty (skip).
PropagateTokenAdvisor.Default composes
JSentinelServiceResolver.findOutboundTokenStrategy(String)
with the supplied store. Prompt 008 lands the Default body;
this file ships the contract so @PropagateToken's meta
reference resolves.
- Since:
- 00.74.00
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classStateless 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. -
Method Summary
Modifier and TypeMethodDescriptionadviseFor(PropagateToken annotation, OutboundCall call, TokenCredentialStore store)
-
Method Details
-
adviseFor
Optional<HeaderValue> adviseFor(PropagateToken annotation, OutboundCall call, TokenCredentialStore store) - Parameters:
annotation- the resolved annotationcall- the outbound call about to firestore- the active credential store- Returns:
- the header to bind, or empty to skip
-