Package org.a2aproject.sdk.spec
Class OpenIdConnectSecurityScheme.Builder
java.lang.Object
org.a2aproject.sdk.spec.OpenIdConnectSecurityScheme.Builder
- Enclosing class:
- OpenIdConnectSecurityScheme
Builder for constructing immutable
OpenIdConnectSecurityScheme instances.
Provides a fluent API for creating OpenID Connect security schemes.
The openIdConnectUrl parameter is required.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new immutableOpenIdConnectSecuritySchemefrom the current builder state.description(String description) Sets the human-readable description of the security scheme.openIdConnectUrl(String openIdConnectUrl) Sets the OpenID Connect Discovery URL.
-
Method Details
-
openIdConnectUrl
Sets the OpenID Connect Discovery URL.- Parameters:
openIdConnectUrl- URL to the OpenID Connect Discovery document (required)- Returns:
- this builder for method chaining
-
description
Sets the human-readable description of the security scheme.- Parameters:
description- the description (optional)- Returns:
- this builder for method chaining
-
build
Builds a new immutableOpenIdConnectSecuritySchemefrom the current builder state.- Returns:
- a new OpenIdConnectSecurityScheme instance
- Throws:
IllegalArgumentException- if openIdConnectUrl is null
-