public class OAuthSubscriptionAccessTokens extends java.lang.Object implements OAuthAccessTokens
| Constructor and Description |
|---|
OAuthSubscriptionAccessTokens(OAuthAccessTokensLoader tokenLoader,
pl.allegro.tech.hermes.common.config.ConfigFactory configFactory) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<OAuthAccessToken> |
getTokenIfPresent(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
java.util.Optional<OAuthAccessToken> |
loadToken(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
void |
refreshToken(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
boolean |
tokenExists(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName) |
@Inject public OAuthSubscriptionAccessTokens(OAuthAccessTokensLoader tokenLoader, pl.allegro.tech.hermes.common.config.ConfigFactory configFactory)
public java.util.Optional<OAuthAccessToken> getTokenIfPresent(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
getTokenIfPresent in interface OAuthAccessTokenspublic java.util.Optional<OAuthAccessToken> loadToken(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
loadToken in interface OAuthAccessTokenspublic void refreshToken(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
refreshToken in interface OAuthAccessTokenspublic boolean tokenExists(pl.allegro.tech.hermes.api.SubscriptionName subscriptionName)
tokenExists in interface OAuthAccessTokens