Package org.a2aproject.sdk.spec
Interface SecurityScheme
- All Known Implementing Classes:
APIKeySecurityScheme,HTTPAuthSecurityScheme,MutualTLSSecurityScheme,OAuth2SecurityScheme,OpenIdConnectSecurityScheme
public sealed interface SecurityScheme
permits APIKeySecurityScheme, HTTPAuthSecurityScheme, OAuth2SecurityScheme, OpenIdConnectSecurityScheme, MutualTLSSecurityScheme
Base interface for security schemes used to authenticate access to agent endpoints.
This sealed interface defines a discriminated union of authentication mechanisms based on
the OpenAPI 3.0 Security Scheme Object specification. Each implementation represents a
different authentication strategy that can be declared in an AgentCard.
Supported security schemes:
APIKeySecurityScheme- API key in header, query, or cookieHTTPAuthSecurityScheme- HTTP Basic or Bearer authenticationOAuth2SecurityScheme- OAuth 2.0 flowsOpenIdConnectSecurityScheme- OpenID Connect discoveryMutualTLSSecurityScheme- Client certificate authentication
-
Method Summary
Modifier and TypeMethodDescriptionReturns the human-readable description of this security scheme.type()Returns the type of the security scheme.