Interface SecurityScheme

All Known Implementing Classes:
APIKeySecurityScheme, HTTPAuthSecurityScheme, MutualTLSSecurityScheme, OAuth2SecurityScheme, OpenIdConnectSecurityScheme

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:

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the human-readable description of this security scheme.
    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

      String type()
      Returns the type of the security scheme.
      Returns:
      the type of the security scheme.