Class HttpSecurityScheme
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
com.mulesoft.connectors.a2a.api.model.card.security.HttpSecurityScheme
Represents an HTTP Authentication security scheme following OpenAPI 3.0 specification.
HTTP Authentication schemes include: - Basic authentication - Bearer token authentication - Digest authentication - Other HTTP
authentication schemes as defined in RFC7235
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this HttpSecurityScheme.booleanCompares this HttpSecurityScheme with another object for equality.Gets the scheme value for DataWeave serialization.getType()Gets the type of the security scheme.inthashCode()Generates a hash code for this HttpSecurityScheme.voidsetBearerFormat(String bearerFormat) voidsetScheme(HttpSchemeType scheme) voidsetSchemeJson(String schemeValue) voidsetSchemeValue(String schemeValue) Methods inherited from class com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
getDescription, getSecuritySchemeName, setDescription, setSecuritySchemeName
-
Constructor Details
-
HttpSecurityScheme
public HttpSecurityScheme()
-
-
Method Details
-
copy
Creates a copy of this HttpSecurityScheme.- Specified by:
copyin classSecurityScheme- Returns:
- A new HttpSecurityScheme instance with the same values as this one
-
getType
Description copied from class:SecuritySchemeGets the type of the security scheme.- Specified by:
getTypein classSecurityScheme- Returns:
- The security scheme type (e.g., "http", "apiKey")
-
getScheme
-
setScheme
-
setSchemeValue
-
setSchemeJson
-
getBearerFormat
-
setBearerFormat
-
getSchemeValue
-
getSchemeValueForDataWeave
Gets the scheme value for DataWeave serialization. This method exposes the enum value (e.g., "bearer") for use in DataWeave scripts.- Returns:
- The scheme value as a string, or null if scheme is not set
-
getSchemeJson
-
equals
Compares this HttpSecurityScheme with another object for equality.- Overrides:
equalsin classSecurityScheme- Parameters:
object- The object to compare with- Returns:
- true if the objects are equal, false otherwise
-
hashCode
public int hashCode()Generates a hash code for this HttpSecurityScheme.- Overrides:
hashCodein classSecurityScheme- Returns:
- A hash code value for this object
-