public class RefreshTokenBasedTokenProvider extends AccessTokenProvider
| Constructor | Description |
|---|---|
RefreshTokenBasedTokenProvider(java.lang.String authEndpoint,
java.lang.String clientId,
java.lang.String refreshToken) |
Constructs a token provider based on the refresh token provided.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected AzureADToken |
refreshToken() |
the method to fetch the access token.
|
getToken, isTokenAboutToExpirepublic RefreshTokenBasedTokenProvider(java.lang.String authEndpoint,
java.lang.String clientId,
java.lang.String refreshToken)
clientId - the client ID (GUID) of the client web app obtained from Azure Active Directory configurationrefreshToken - the refresh tokenprotected AzureADToken refreshToken() throws java.io.IOException
AccessTokenProviderrefreshToken in class AccessTokenProviderAzureADToken containing the access tokenjava.io.IOException - if there is an error fetching the tokenCopyright © 2008–2025 Apache Software Foundation. All rights reserved.