public final class TestingAccessTokenProvider extends Object implements AccessTokenProvider
AccessTokenProvider
interface to be used in tests.AccessTokenProvider.AccessToken
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) |
public static final String FAKE_ACCESS_TOKEN
public static final Long EXPIRATION_TIME_MILLISECONDS
public AccessTokenProvider.AccessToken getAccessToken()
getAccessToken
in interface AccessTokenProvider
public void refresh()
AccessTokenProvider
refresh
in interface AccessTokenProvider
public void setConf(org.apache.hadoop.conf.Configuration config)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
Copyright © 2020. All rights reserved.