java.lang.Object
org.mule.runtime.extension.api.connectivity.oauth.OAuthModelProperty
All Implemented Interfaces:
Serializable, org.mule.runtime.api.meta.model.ModelProperty, org.mule.runtime.api.meta.NamedObject

public class OAuthModelProperty extends Object implements org.mule.runtime.api.meta.model.ModelProperty
A public ModelProperty used to indicate that a ConnectionProvider supports a number of OAuth2 grant types
Since:
1.0
See Also:
  • Field Details

  • Constructor Details

    • OAuthModelProperty

      public OAuthModelProperty(List<OAuthGrantType> grantTypes)
      Creates a new instance
      Parameters:
      grantTypes - the grant types supported
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.mule.runtime.api.meta.model.ModelProperty
      Specified by:
      getName in interface org.mule.runtime.api.meta.NamedObject
      Returns:
      oauth
    • isPublic

      public boolean isPublic()
      Specified by:
      isPublic in interface org.mule.runtime.api.meta.model.ModelProperty
      Returns:
      true
    • getGrantTypes

      public List<OAuthGrantType> getGrantTypes()
      Returns:
      the supported grant types