@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class AzureADTokenProvider extends Object
AdlFileSystem
.Constructor and Description |
---|
AzureADTokenProvider() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getAccessToken()
Obtain the access token that should be added to https connection's header.
|
abstract Date |
getExpiryTime()
Obtain expiry time of the token.
|
abstract void |
initialize(Configuration configuration)
Initialize with supported configuration.
|
public abstract void initialize(Configuration configuration) throws IOException
(URI, Configuration)
method is invoked.configuration
- Configuration objectIOException
- if instance can not be configured.public abstract String getAccessToken() throws IOException
getExpiryTime()
expiry time is set,
so implementations should be performant. Implementations are responsible
for any refreshing of the token.IOException
- if there is an error fetching the tokenpublic abstract Date getExpiryTime()
getAccessToken()
call for every
connection then safe to return current or past time.
However recommended to use the token expiry time received from Azure Active
Directory.Copyright © 2018 Apache Software Foundation. All rights reserved.