Class RetryingAccessTokenProvider

java.lang.Object
org.entur.jwt.client.BaseAccessTokenProvider
org.entur.jwt.client.RetryingAccessTokenProvider
All Implemented Interfaces:
Closeable, AutoCloseable, AccessTokenHealthProvider, AccessTokenProvider

public class RetryingAccessTokenProvider extends BaseAccessTokenProvider
This provider implements a workaround for transient network problems.

It retries getting the AccessToken if the wrapped provider throws a AccessTokenUnavailableException.