Package org.apache.iceberg.rest.auth
Class OAuth2Util
java.lang.Object
org.apache.iceberg.rest.auth.OAuth2Util
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass to handle authorization headers and token refresh. - 
Method Summary
Modifier and TypeMethodDescriptionauthHeaders(String token) basicAuthHeaders(String credential) buildOptionalParam(Map<String, String> properties) static OAuthTokenResponseexchangeToken(RESTClient client, Map<String, String> headers, String subjectToken, String subjectTokenType, String actorToken, String actorTokenType, String scope) static OAuthTokenResponseexchangeToken(RESTClient client, Map<String, String> headers, String subjectToken, String subjectTokenType, String actorToken, String actorTokenType, String scope, String oauth2ServerUri) static OAuthTokenResponseexchangeToken(RESTClient client, Map<String, String> headers, String subjectToken, String subjectTokenType, String actorToken, String actorTokenType, String scope, String oauth2ServerUri, Map<String, String> optionalParams) static OAuthTokenResponsefetchToken(RESTClient client, Map<String, String> headers, String credential, String scope) static OAuthTokenResponsefetchToken(RESTClient client, Map<String, String> headers, String credential, String scope, String oauth2ServerUri) static OAuthTokenResponsefetchToken(RESTClient client, Map<String, String> headers, String credential, String scope, String oauth2ServerUri, Map<String, String> optionalParams) static booleanisValidScopeToken(String scopeToken) parseScope(String scope) static OAuthTokenResponsetokenResponseFromJson(com.fasterxml.jackson.databind.JsonNode json) static OAuthTokenResponsetokenResponseFromJson(String json) static StringtokenResponseToJson(OAuthTokenResponse response) static voidtokenResponseToJson(OAuthTokenResponse response, com.fasterxml.jackson.core.JsonGenerator gen) static String 
- 
Method Details
- 
authHeaders
 - 
basicAuthHeaders
 - 
isValidScopeToken
 - 
parseScope
 - 
toScope
 - 
buildOptionalParam
 - 
exchangeToken
 - 
exchangeToken
public static OAuthTokenResponse exchangeToken(RESTClient client, Map<String, String> headers, String subjectToken, String subjectTokenType, String actorToken, String actorTokenType, String scope)  - 
exchangeToken
 - 
fetchToken
 - 
fetchToken
public static OAuthTokenResponse fetchToken(RESTClient client, Map<String, String> headers, String credential, String scope)  - 
fetchToken
public static OAuthTokenResponse fetchToken(RESTClient client, Map<String, String> headers, String credential, String scope, String oauth2ServerUri)  - 
tokenResponseToJson
 - 
tokenResponseToJson
public static void tokenResponseToJson(OAuthTokenResponse response, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
 IOException
 - 
tokenResponseFromJson
 - 
tokenResponseFromJson
public static OAuthTokenResponse tokenResponseFromJson(com.fasterxml.jackson.databind.JsonNode json)  
 -