ClientCredsTokenProvider, CustomTokenProviderAdapter, MsiTokenProvider, RefreshTokenBasedTokenProvider, UserPasswordTokenProvider, WorkloadIdentityTokenProviderpublic abstract class AccessTokenProvider
extends java.lang.Object
| Constructor | Description |
|---|---|
AccessTokenProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
AzureADToken |
getToken() |
returns the
AzureADToken cached (or retrieved) by this instance. |
protected boolean |
isTokenAboutToExpire() |
Checks if the token is about to expire in the next 5 minutes.
|
protected abstract AzureADToken |
refreshToken() |
the method to fetch the access token.
|
public AzureADToken getToken() throws java.io.IOException
AzureADToken cached (or retrieved) by this instance.AzureADToken containing the access tokenjava.io.IOException - if there is an error fetching the tokenprotected abstract AzureADToken refreshToken() throws java.io.IOException
AzureADToken containing the access tokenjava.io.IOException - if there is an error fetching the tokenprotected boolean isTokenAboutToExpire()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.