Class SecurityScheme

java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
Direct Known Subclasses:
ApiKeySecurityScheme, HttpSecurityScheme, Oauth2SecurityScheme, OpenIdConnectSecurityScheme

public abstract class SecurityScheme extends Object
Abstract base class for security schemes that maps a security scheme to different security scheme configurations.

This abstract class provides a structured way to define security schemes with better DataWeave support. Concrete implementations include HttpSecurityScheme and ApiKeySecurityScheme.

Since:
1.0.0
  • Constructor Details

    • SecurityScheme

      public SecurityScheme()
  • Method Details

    • setSecuritySchemeName

      public void setSecuritySchemeName(String securitySchemeName)
      Sets the name of the security scheme.
      Parameters:
      securitySchemeName - The name of the security scheme
    • setDescription

      public void setDescription(String description)
      Sets the description of the security scheme.
      Parameters:
      description - The description of the security scheme
    • getSecuritySchemeName

      public String getSecuritySchemeName()
    • getType

      public abstract String getType()
      Gets the type of the security scheme.
      Returns:
      The security scheme type (e.g., "http", "apiKey")
    • getDescription

      public String getDescription()
      Gets the description of the security scheme.
      Returns:
      The description, or null if not set
    • copy

      public abstract SecurityScheme copy()
      Creates a copy of this security scheme.
      Returns:
      A new instance with the same values
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object