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