Package org.a2aproject.sdk.spec
Class HTTPAuthSecurityScheme.Builder
java.lang.Object
org.a2aproject.sdk.spec.HTTPAuthSecurityScheme.Builder
- Enclosing class:
- HTTPAuthSecurityScheme
Builder for constructing
HTTPAuthSecurityScheme instances.
Provides a fluent API for creating HTTP authentication security schemes.
The scheme parameter is required and must be set before calling build().
-
Method Summary
Modifier and TypeMethodDescriptionbearerFormat(String bearerFormat) Sets the bearer token format hint.build()Builds theHTTPAuthSecuritySchemeinstance.description(String description) Sets an optional description of the security scheme.Sets the HTTP authentication scheme name.
-
Method Details
-
bearerFormat
Sets the bearer token format hint.- Parameters:
bearerFormat- hint to the client about the format of bearer tokens (e.g., "JWT")- Returns:
- this builder instance
-
scheme
Sets the HTTP authentication scheme name.- Parameters:
scheme- the scheme name (required, e.g., "basic" or "bearer")- Returns:
- this builder instance
-
description
Sets an optional description of the security scheme.- Parameters:
description- human-readable description- Returns:
- this builder instance
-
build
Builds theHTTPAuthSecuritySchemeinstance.- Returns:
- a new immutable HTTPAuthSecurityScheme
- Throws:
IllegalArgumentException- if required fields are missing
-