@Public
@Evolving
public abstract class AzureADTokenProvider
extends java.lang.Object
AdlFileSystem.| Constructor | Description |
|---|---|
AzureADTokenProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract java.lang.String |
getAccessToken() |
Obtain the access token that should be added to https connection's header.
|
abstract java.util.Date |
getExpiryTime() |
Obtain expiry time of the token.
|
abstract void |
initialize(org.apache.hadoop.conf.Configuration configuration) |
Initialize with supported configuration.
|
public abstract void initialize(org.apache.hadoop.conf.Configuration configuration)
throws java.io.IOException
(URI, Configuration) method is invoked.configuration - Configuration objectjava.io.IOException - if instance can not be configured.public abstract java.lang.String getAccessToken()
throws java.io.IOException
getExpiryTime() expiry time is set,
so implementations should be performant. Implementations are responsible
for any refreshing of the token.java.io.IOException - if there is an error fetching the tokenpublic abstract java.util.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 © 2008–2025 Apache Software Foundation. All rights reserved.