@LimitedPrivate("authorization-subsystems")
@Unstable
public interface CustomTokenProviderAdaptee
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAccessToken() |
Obtain the access token that should be added to https connection's header.
|
java.util.Date |
getExpiryTime() |
Obtain expiry time of the token.
|
void |
initialize(org.apache.hadoop.conf.Configuration configuration,
java.lang.String accountName) |
Initialize with supported configuration.
|
void initialize(org.apache.hadoop.conf.Configuration configuration,
java.lang.String accountName)
throws java.io.IOException
configuration - Configuration objectaccountName - Account Namejava.io.IOException - if instance can not be configured.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 tokenjava.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.