public final class TestingAccessTokenProvider extends Object implements AccessTokenProvider
AccessTokenProvider interface to be used in tests.AccessTokenProvider.AccessToken, AccessTokenProvider.AccessTokenType| Modifier and Type | Field and Description |
|---|---|
static Long |
EXPIRATION_TIME_MILLISECONDS |
static String |
FAKE_ACCESS_TOKEN |
| Constructor and Description |
|---|
TestingAccessTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
AccessTokenProvider.AccessToken |
getAccessToken() |
org.apache.hadoop.conf.Configuration |
getConf() |
void |
refresh()
Force this provider to refresh its access token.
|
void |
setConf(org.apache.hadoop.conf.Configuration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessToken, getAccessTokenTypepublic static final String FAKE_ACCESS_TOKEN
public static final Long EXPIRATION_TIME_MILLISECONDS
public AccessTokenProvider.AccessToken getAccessToken()
getAccessToken in interface AccessTokenProviderpublic void refresh()
AccessTokenProviderrefresh in interface AccessTokenProviderpublic void setConf(org.apache.hadoop.conf.Configuration config)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.ConfigurableCopyright © 2024. All rights reserved.