Package org.entur.jwt.client
Class BaseAccessTokenProvider
java.lang.Object
org.entur.jwt.client.BaseAccessTokenProvider
- All Implemented Interfaces:
Closeable,AutoCloseable,AccessTokenHealthProvider,AccessTokenProvider
- Direct Known Subclasses:
AbstractAccessTokenHealthProvider,AbstractCachedAccessTokenProvider,RetryingAccessTokenProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.slf4j.Loggerprotected final AccessTokenProvider -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.entur.jwt.client.AccessTokenProvider
getAccessToken
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
provider
-
-
Constructor Details
-
BaseAccessTokenProvider
-
-
Method Details
-
getProvider
-
getHealth
Description copied from interface:AccessTokenHealthProviderGet health. An implementation is expected to refresh the health status if there is no current status, or if the last status was unsuccessful.- Specified by:
getHealthin interfaceAccessTokenHealthProvider- Parameters:
refresh- true if the provider (optionally) can refresh the state before returning (typically if the health is missing or bad)- Returns:
- health status, or null if none is available.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
supportsHealth
public boolean supportsHealth()- Specified by:
supportsHealthin interfaceAccessTokenHealthProvider
-