Package net.finmath.pontes.erc7573
Class PontesRequestAuthorizer
java.lang.Object
net.finmath.pontes.erc7573.PontesRequestAuthorizer
Separates token acquisition from the resource-request interceptor.
-
Constructor Summary
ConstructorsConstructorDescriptionPontesRequestAuthorizer(PontesAccessTokenProvider tokenProvider, Duration minimumValidity) -
Method Summary
Modifier and TypeMethodDescriptionvoidRevalidates the prepared request-lifetime margin without token-endpoint I/O.org.springframework.http.client.ClientHttpRequestInterceptorHeader attachment is local-only; token endpoint I/O is forbidden here.voidprepare()May perform token-endpoint I/O and therefore belongs before a mutation dispatch boundary.
-
Constructor Details
-
PontesRequestAuthorizer
-
-
Method Details
-
prepare
public void prepare()May perform token-endpoint I/O and therefore belongs before a mutation dispatch boundary. -
assertPrepared
public void assertPrepared()Revalidates the prepared request-lifetime margin without token-endpoint I/O. -
interceptor
public org.springframework.http.client.ClientHttpRequestInterceptor interceptor()Header attachment is local-only; token endpoint I/O is forbidden here.
-