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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the human-readable description of this security scheme.type()Returns the type of the security scheme.
-
Method Details
-
description
String description()Returns the human-readable description of this security scheme.- Returns:
- the description, or null if not provided
-
type
-