Class Oauth2Flow
java.lang.Object
com.mulesoft.connectors.a2a.api.model.card.security.Oauth2Flow
- Direct Known Subclasses:
AuthorizationCodeOauth2Flows,ClientCredentialsOauth2Flows,ImplicitOauth2Flows,PasswordOauth2Flows
Abstract base class for OAuth2 flow configurations.
This abstract class provides common functionality for all OAuth2 flow types.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Oauth2Flowcopy()Creates a copy of this OAuth2 flow.booleanCompares this OAuth2 flow with another object for equality.abstract StringgetType()Gets the type of the OAuth2 flow.inthashCode()Generates a hash code for this OAuth2 flow.voidsetOauth2Scopes(List<Oauth2Scope> oauth2Scopes) voidsetRefreshUrl(String refreshUrl)
-
Constructor Details
-
Oauth2Flow
public Oauth2Flow()
-
-
Method Details
-
getType
Gets the type of the OAuth2 flow.- Returns:
- The OAuth2 flow type
-
copy
Creates a copy of this OAuth2 flow.- Returns:
- A new instance with the same values as this one
-
getRefreshUrl
-
setRefreshUrl
-
getOauth2Scopes
-
setOauth2Scopes
-
equals
Compares this OAuth2 flow with another object for equality. -
hashCode
public int hashCode()Generates a hash code for this OAuth2 flow.
-