Class EnedisTokenProvider
java.lang.Object
energy.eddie.regionconnector.fr.enedis.client.EnedisTokenProvider
-
Constructor Summary
ConstructorsConstructorDescriptionEnedisTokenProvider(EnedisConfiguration configuration, org.springframework.web.reactive.function.client.WebClient webClient) -
Method Summary
-
Constructor Details
-
EnedisTokenProvider
public EnedisTokenProvider(EnedisConfiguration configuration, org.springframework.web.reactive.function.client.WebClient webClient)
-
-
Method Details
-
getToken
Retrieves and caches a token. If the token is expired, a new token is fetched. If the token cannot be fetched the mono errors with aTokenProviderException.- Returns:
- a valid token
-