Class HttpSecurityScheme

java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
com.mulesoft.connectors.a2a.api.model.card.security.HttpSecurityScheme

public class HttpSecurityScheme extends SecurityScheme
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 Details

    • HttpSecurityScheme

      public HttpSecurityScheme()
  • Method Details

    • copy

      public HttpSecurityScheme copy()
      Creates a copy of this HttpSecurityScheme.
      Specified by:
      copy in class SecurityScheme
      Returns:
      A new HttpSecurityScheme instance with the same values as this one
    • getType

      public String getType()
      Description copied from class: SecurityScheme
      Gets the type of the security scheme.
      Specified by:
      getType in class SecurityScheme
      Returns:
      The security scheme type (e.g., "http", "apiKey")
    • getScheme

      public HttpSchemeType getScheme()
    • setScheme

      public void setScheme(HttpSchemeType scheme)
    • setSchemeValue

      public void setSchemeValue(String schemeValue)
    • setSchemeJson

      public void setSchemeJson(String schemeValue)
    • getBearerFormat

      public String getBearerFormat()
    • setBearerFormat

      public void setBearerFormat(String bearerFormat)
    • getSchemeValue

      public String getSchemeValue()
    • getSchemeValueForDataWeave

      public String 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

      public String getSchemeJson()
    • equals

      public boolean equals(Object object)
      Compares this HttpSecurityScheme with another object for equality.
      Overrides:
      equals in class SecurityScheme
      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:
      hashCode in class SecurityScheme
      Returns:
      A hash code value for this object