Class Oauth2SecurityScheme
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
com.mulesoft.connectors.a2a.api.model.card.security.Oauth2SecurityScheme
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this Oauth2SecurityScheme.booleanCompares this Oauth2SecurityScheme with another object for equality.getFlows()getType()Gets the type of the security scheme.inthashCode()Generates a hash code for this Oauth2SecurityScheme.voidsetFlows(Oauth2Flows flows) Methods inherited from class com.mulesoft.connectors.a2a.api.model.card.SecurityScheme
getDescription, getSecuritySchemeName, setDescription, setSecuritySchemeName
-
Constructor Details
-
Oauth2SecurityScheme
public Oauth2SecurityScheme()
-
-
Method Details
-
copy
Creates a copy of this Oauth2SecurityScheme.- Specified by:
copyin classSecurityScheme- Returns:
- A new Oauth2SecurityScheme 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")
-
getFlows
-
setFlows
-
equals
Compares this Oauth2SecurityScheme 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 Oauth2SecurityScheme.- Overrides:
hashCodein classSecurityScheme- Returns:
- A hash code value for this object
-