Class OAuth2Config
java.lang.Object
com.google.genai.gaos.models.credentials.OAuth2Config
- All Implemented Interfaces:
CredentialCreateParams
OAuth2Config
Configuration for OAuth2 credentials with automatic token refresh.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2Config.Builderbuilder()clientId()Required.Required.booleaninthashCode()id()Required.scopes()Optional.tokenUrl()Required.toString()type()withClientId(String clientId) Required.withClientSecret(String clientSecret) Required.withRefreshToken(String refreshToken) Required.withScopes(List<String> scopes) Optional.withTokenUrl(String tokenUrl) Required.
-
Constructor Details
-
OAuth2Config
-
OAuth2Config
-
-
Method Details
-
clientId
Required. OAuth2 client ID. -
clientSecret
Required. Input only. OAuth2 client secret.Write-only; never returned in responses.
-
id
-
refreshToken
Required. Input only. OAuth2 refresh token.Write-only; never returned in responses.
-
scopes
Optional. List of OAuth2 scopes. -
tokenUrl
Required. OAuth2 token endpoint URL for refreshing access tokens. -
type
- Specified by:
typein interfaceCredentialCreateParams
-
builder
-
withClientId
Required. OAuth2 client ID. -
withClientSecret
Required. Input only. OAuth2 client secret.Write-only; never returned in responses.
-
withId
-
withRefreshToken
Required. Input only. OAuth2 refresh token.Write-only; never returned in responses.
-
withScopes
Optional. List of OAuth2 scopes. -
withTokenUrl
Required. OAuth2 token endpoint URL for refreshing access tokens. -
equals
-
hashCode
public int hashCode() -
toString
-