Package org.a2aproject.sdk.spec
Class OAuthFlows.Builder
java.lang.Object
org.a2aproject.sdk.spec.OAuthFlows.Builder
- Enclosing class:
- OAuthFlows
Builder for constructing
OAuthFlows instances.-
Method Summary
Modifier and TypeMethodDescriptionauthorizationCode(AuthorizationCodeOAuthFlow authorizationCode) Sets the authorization code flow configuration.build()Builds a new immutable OAuthFlows instance.clientCredentials(ClientCredentialsOAuthFlow clientCredentials) Sets the client credentials flow configuration.deviceCode(DeviceCodeOAuthFlow deviceCode) Sets the device code flow configuration.
-
Method Details
-
authorizationCode
Sets the authorization code flow configuration.- Parameters:
authorizationCode- the authorization code flow (optional)- Returns:
- this builder for method chaining
-
clientCredentials
Sets the client credentials flow configuration.- Parameters:
clientCredentials- the client credentials flow (optional)- Returns:
- this builder for method chaining
-
deviceCode
Sets the device code flow configuration.- Parameters:
deviceCode- the device code flow (optional)- Returns:
- this builder for method chaining
-
build
Builds a new immutable OAuthFlows instance.- Returns:
- a new OAuthFlows instance
-