public abstract class OAuth2TokenProvider
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
OAuth2TokenProvider.OAuth2TokenProviderBuilder<SELF extends org.apache.gravitino.client.OAuth2TokenProvider.Builder<SELF,T>,T extends OAuth2TokenProvider>
Builder interface for creating instances of  
OAuth2TokenProvider. | 
| Modifier and Type | Field and Description | 
|---|---|
protected HTTPClient | 
client
The HTTP client used to request the access token from the authorization server. 
 | 
| Constructor and Description | 
|---|
OAuth2TokenProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Closes the OAuth2TokenProvider and releases any underlying resources. 
 | 
protected abstract java.lang.String | 
getAccessToken()
Get the access token from the authorization server. 
 | 
byte[] | 
getTokenData()
Acquire the data of token for authentication. 
 | 
boolean | 
hasTokenData()
Judge whether AuthDataProvider can provide token data. 
 | 
protected HTTPClient client
public boolean hasTokenData()
public byte[] getTokenData()
public void close()
           throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.String getAccessToken()