All Superinterfaces:
org.mule.runtime.api.meta.NamedObject
All Known Implementing Classes:
AuthorizationCodeGrantType, ClientCredentialsGrantType, PlatformManagedOAuthGrantType

@NoImplement public interface OAuthGrantType extends org.mule.runtime.api.meta.NamedObject
Base contract for a Grant Type as defined in the OAuth2 specification.

Instances are to contain information about how to use this grant type against a particular OAuth provider.

Since:
1.0
  • Method Details

    • getAccessTokenExpr

      String getAccessTokenExpr()
      Returns:
      The expression to be used to extract the access token from the service provider response
      Since:
      1.3.0
    • getExpirationRegex

      String getExpirationRegex()
      Returns:
      The regular expression to be used to extract the expiration time from the service provider response
      Since:
      1.3.0
    • accept

      void accept(OAuthGrantTypeVisitor visitor)
      Accepts a visitor
      Parameters:
      visitor - an OAuthGrantTypeVisitor
      Since:
      1.2.1