Class Oauth2SecurityScheme

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

@DisplayName("Oauth2 Security Scheme") public class Oauth2SecurityScheme extends SecurityScheme
Represents an OAuth2 security scheme following OpenAPI 3.0 specification. OAuth2 is a protocol that lets external applications request authorization to private details in a user's account without getting their password. This is more preferable and secure than asking users to log in with passwords.
Since:
1.0.0
  • Constructor Details

    • Oauth2SecurityScheme

      public Oauth2SecurityScheme()
  • Method Details

    • copy

      public Oauth2SecurityScheme copy()
      Creates a copy of this Oauth2SecurityScheme.
      Specified by:
      copy in class SecurityScheme
      Returns:
      A new Oauth2SecurityScheme 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")
    • getFlows

      public Oauth2Flows getFlows()
    • setFlows

      public void setFlows(Oauth2Flows flows)
    • equals

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