Package org.apache.iceberg.rest.auth
Class OAuth2Properties
java.lang.Object
org.apache.iceberg.rest.auth.OAuth2Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringOptional param audience for OAuth2.static final StringScope for OAuth2 flows.static final StringA credential to exchange for a token in the OAuth2 client credentials flow.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringToken endpoint URI to fetch token from if the Rest Catalog is not the authorization server.static final Stringstatic final StringOptional param resource for OAuth2.static final Stringstatic final Stringstatic final StringAdditional scope for OAuth2.static final StringA Bearer token which will be used for interaction with the server.static final StringSome IDPs do not support token exchange which is the first approach used for acquiring a new token.static final booleanstatic final StringInterval in milliseconds to wait before attempting to exchange the configured catalog Bearer token.static final longstatic final StringControls whether a token should be refreshed if information about its expiration time is availablestatic final booleanstatic final Stringstatic final String
- 
Method Summary
- 
Field Details- 
TOKENA Bearer token which will be used for interaction with the server.- See Also:
 
- 
CREDENTIALA credential to exchange for a token in the OAuth2 client credentials flow.- See Also:
 
- 
OAUTH2_SERVER_URIToken endpoint URI to fetch token from if the Rest Catalog is not the authorization server.- See Also:
 
- 
TOKEN_EXPIRES_IN_MSInterval in milliseconds to wait before attempting to exchange the configured catalog Bearer token. By default, token exchange will be attempted after 1 hour.- See Also:
 
- 
TOKEN_EXPIRES_IN_MS_DEFAULTpublic static final long TOKEN_EXPIRES_IN_MS_DEFAULT- See Also:
 
- 
TOKEN_REFRESH_ENABLEDControls whether a token should be refreshed if information about its expiration time is available- See Also:
 
- 
TOKEN_REFRESH_ENABLED_DEFAULTpublic static final boolean TOKEN_REFRESH_ENABLED_DEFAULT- See Also:
 
- 
TOKEN_EXCHANGE_ENABLEDSome IDPs do not support token exchange which is the first approach used for acquiring a new token. Disabling this will allow fallback to the client credential flow without initiating a token exchange flow.- See Also:
 
- 
TOKEN_EXCHANGE_ENABLED_DEFAULTpublic static final boolean TOKEN_EXCHANGE_ENABLED_DEFAULT- See Also:
 
- 
SCOPEAdditional scope for OAuth2.- See Also:
 
- 
AUDIENCEOptional param audience for OAuth2.- See Also:
 
- 
RESOURCEOptional param resource for OAuth2.- See Also:
 
- 
CATALOG_SCOPEScope for OAuth2 flows.- See Also:
 
- 
ACCESS_TOKEN_TYPE- See Also:
 
- 
REFRESH_TOKEN_TYPE- See Also:
 
- 
ID_TOKEN_TYPE- See Also:
 
- 
SAML1_TOKEN_TYPE- See Also:
 
- 
SAML2_TOKEN_TYPE- See Also:
 
- 
JWT_TOKEN_TYPE- See Also:
 
- 
INVALID_REQUEST_ERROR- See Also:
 
- 
INVALID_CLIENT_ERROR- See Also:
 
- 
INVALID_GRANT_ERROR- See Also:
 
- 
UNAUTHORIZED_CLIENT_ERROR- See Also:
 
- 
UNSUPPORTED_GRANT_TYPE_ERROR- See Also:
 
- 
INVALID_SCOPE_ERROR- See Also:
 
 
-