Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mutual Authentication does not work for SOAP or Bulk APIs #213
Currently, it's not possible to use the WSC with Mutual Authentication as there is no way to set a new SSL socket factory in the API client.
@stevenlawrance suggests creating a new Transport based on JdkHttpTransport. This works, but is kludgy and requires the developer to copy Salesforce code into a new class, since the 'useful' methods in JdkHttpTransport are private.
Even with that in place, the Bulk API does not work, as ConnectorConfig.createTransport() doesn't set the transport config when you use a custom transport factory, so the transport is unconfigured.