Class SecurityScheme
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
- Direct Known Subclasses:
ApiKeySecurityScheme,HttpSecurityScheme,Oauth2SecurityScheme,OpenIdConnectSecurityScheme
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SecuritySchemecopy()Creates a copy of this security scheme.booleanGets the description of the security scheme.abstract StringgetType()Gets the type of the security scheme.inthashCode()voidsetDescription(String description) Sets the description of the security scheme.voidsetSecuritySchemeName(String securitySchemeName) Sets the name of the security scheme.
-
Constructor Details
-
SecurityScheme
public SecurityScheme()
-
-
Method Details
-
setSecuritySchemeName
Sets the name of the security scheme.- Parameters:
securitySchemeName- The name of the security scheme
-
setDescription
Sets the description of the security scheme.- Parameters:
description- The description of the security scheme
-
getSecuritySchemeName
-
getType
Gets the type of the security scheme.- Returns:
- The security scheme type (e.g., "http", "apiKey")
-
getDescription
Gets the description of the security scheme.- Returns:
- The description, or null if not set
-
copy
Creates a copy of this security scheme.- Returns:
- A new instance with the same values
-
equals
-
hashCode
public int hashCode()
-