Class TestOAuthClientCredentialsProvider

java.lang.Object
org.mule.test.oauth.TestOAuthConnectionState
org.mule.test.oauth.TestOAuthClientCredentialsProvider
All Implemented Interfaces:
org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>

@ClientCredentials(tokenUrl="accessTokenUrl", defaultScopes="defaultScope", credentialsPlacement=QUERY_PARAMS) @Alias("client-credentials") public class TestOAuthClientCredentialsProvider extends TestOAuthConnectionState implements org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>
  • Constructor Details

    • TestOAuthClientCredentialsProvider

      public TestOAuthClientCredentialsProvider()
  • Method Details

    • connect

      public TestOAuthConnection connect() throws org.mule.runtime.api.connection.ConnectionException
      Specified by:
      connect in interface org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>
      Throws:
      org.mule.runtime.api.connection.ConnectionException
    • disconnect

      public void disconnect(TestOAuthConnection connection)
      Specified by:
      disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>
    • getState

      public org.mule.runtime.extension.api.connectivity.oauth.OAuthState getState()
      Overrides:
      getState in class TestOAuthConnectionState
    • validate

      public org.mule.runtime.api.connection.ConnectionValidationResult validate(TestOAuthConnection connection)
      Specified by:
      validate in interface org.mule.runtime.api.connection.ConnectionProvider<TestOAuthConnection>