Package net.finmath.pontes.erc7573
Class OAuth2PasswordPontesAccessTokenProvider
java.lang.Object
net.finmath.pontes.erc7573.OAuth2PasswordPontesAccessTokenProvider
- All Implemented Interfaces:
PontesAccessTokenProvider
public final class OAuth2PasswordPontesAccessTokenProvider
extends Object
implements PontesAccessTokenProvider
Password-flow token provider for the realm-specific OAuth endpoints declared by Pontes.
The exact production A2A credential profile is deployment configuration: username/password, client secret and scope are emitted only when configured. Pontes v1.1 requires the password grant and client ID in the form body, with mTLS authentication. TLS and the client certificate are supplied by the shared Spring SSL bundle configured on the request factory.
-
Field Summary
Fields inherited from interface net.finmath.pontes.erc7573.PontesAccessTokenProvider
MAX_ACCESS_TOKEN_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2PasswordPontesAccessTokenProvider(org.springframework.web.client.RestClient tokenClient, com.fasterxml.jackson.databind.ObjectMapper mapper, URI tokenUrl, String clientId, String username, String password, String clientSecret, String scope, Duration refreshSkew, int responseMaxBytes) -
Method Summary
Modifier and TypeMethodDescriptionvoidassertPrepared(Duration minimumValidity) Performs a local-only check that the prepared token still covers the required request window.Returns an already prepared token and must never perform network I/O.voidMay acquire or refresh a token.
-
Constructor Details
-
OAuth2PasswordPontesAccessTokenProvider
-
-
Method Details
-
prepare
Description copied from interface:PontesAccessTokenProviderMay acquire or refresh a token. Mutation coordinators call this before their durable dispatch boundary so authentication I/O cannot make an unsent request look ambiguous.- Specified by:
preparein interfacePontesAccessTokenProvider
-
currentAccessToken
Description copied from interface:PontesAccessTokenProviderReturns an already prepared token and must never perform network I/O.- Specified by:
currentAccessTokenin interfacePontesAccessTokenProvider
-
assertPrepared
Description copied from interface:PontesAccessTokenProviderPerforms a local-only check that the prepared token still covers the required request window. Implementations must not contact the token endpoint from this method.- Specified by:
assertPreparedin interfacePontesAccessTokenProvider
-