Class ApiKeySecurityScheme
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
com.mulesoft.connectors.a2a.api.model.card.security.ApiKeySecurityScheme
Represents an API Key security scheme following OpenAPI 3.0 specification.
The API key can be passed in the request in different ways: - As a header parameter - As a query parameter - As a cookie
parameter
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this ApiKeySecurityScheme.booleanCompares this ApiKeySecurityScheme with another object for equality.getIn()Gets the location as a string value for backward compatibility.Gets the 'in' value for DataWeave serialization.getName()getType()Gets the type of the security scheme.inthashCode()Generates a hash code for this ApiKeySecurityScheme.voidsetIn(ApiKeyLocation in) voidSets the location from a string value for backward compatibility.voidsetInValue(String inValue) Sets the location from a string value for backward compatibility.voidMethods inherited from class com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
getDescription, getSecuritySchemeName, setDescription, setSecuritySchemeName
-
Constructor Details
-
ApiKeySecurityScheme
public ApiKeySecurityScheme()
-
-
Method Details
-
copy
Creates a copy of this ApiKeySecurityScheme.- Specified by:
copyin classSecurityScheme- Returns:
- A new ApiKeySecurityScheme 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")
-
getName
-
setName
-
getIn
-
setIn
-
getInJson
Gets the location as a string value for backward compatibility.- Returns:
- The location string value, or null if location is null
-
setInJson
Sets the location from a string value for backward compatibility.- Parameters:
inValue- The location string value
-
setInValue
Sets the location from a string value for backward compatibility.- Parameters:
inValue- The location string value
-
getInValue
-
getInValueForDataWeave
Gets the 'in' value for DataWeave serialization. This method exposes the enum value (e.g., "header") for use in DataWeave scripts.- Returns:
- The 'in' value as a string, or null if 'in' is not set
-
equals
Compares this ApiKeySecurityScheme 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 ApiKeySecurityScheme.- Overrides:
hashCodein classSecurityScheme- Returns:
- A hash code value for this object
-