public abstract class AccessTokenProvider extends Object
| Constructor and Description |
|---|
AccessTokenProvider() |
| Modifier and Type | Method and Description |
|---|---|
AzureADToken |
getToken()
returns the
AzureADToken cached (or retrieved) by this instance. |
protected abstract AzureADToken |
refreshToken()
the method to fetch the access token.
|
public AzureADToken getToken() throws IOException
AzureADToken cached (or retrieved) by this instance.AzureADToken containing the access tokenIOException - if there is an error fetching the tokenprotected abstract AzureADToken refreshToken() throws IOException
AzureADToken containing the access tokenIOException - if there is an error fetching the tokenCopyright © 2008–2020 Apache Software Foundation. All rights reserved.