java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.security.Oauth2Flow
Direct Known Subclasses:
AuthorizationCodeOauth2Flows, ClientCredentialsOauth2Flows, ImplicitOauth2Flows, PasswordOauth2Flows

public abstract class Oauth2Flow extends Object
Abstract base class for OAuth2 flow configurations. This abstract class provides common functionality for all OAuth2 flow types.
Since:
1.0.0
  • Constructor Details

    • Oauth2Flow

      public Oauth2Flow()
  • Method Details

    • getType

      public abstract String getType()
      Gets the type of the OAuth2 flow.
      Returns:
      The OAuth2 flow type
    • copy

      public abstract Oauth2Flow copy()
      Creates a copy of this OAuth2 flow.
      Returns:
      A new instance with the same values as this one
    • getRefreshUrl

      public String getRefreshUrl()
    • setRefreshUrl

      public void setRefreshUrl(String refreshUrl)
    • getOauth2Scopes

      public List<Oauth2Scope> getOauth2Scopes()
    • setOauth2Scopes

      public void setOauth2Scopes(List<Oauth2Scope> oauth2Scopes)
    • equals

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