Class GetOauthToken

All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConfigComment, MessageEventGenerator, Service, StateManagedComponent

@ComponentProfile(summary="Make a HTTP(s) request to an OAUTH server and retrieve an access token", tag="service,http,https,oauth") public class GetOauthToken extends OauthTokenGetter
Simplified framework for retrieving OAUTH tokens from verious 3rd party resources (such as Salesforce, or Google).

In the adapter configuration file this class is aliased as get-oauth-token which is the preferred alternative to the fully qualified classname when building your configuration.

  • Constructor Details

    • GetOauthToken

      public GetOauthToken()
  • Method Details

    • doService

      public void doService(AdaptrisMessage msg) throws ServiceException
      Description copied from interface: Service

      Apply the service to the message.

      Parameters:
      msg - the AdaptrisMessage to process
      Throws:
      ServiceException - wrapping any underlying Exceptions