Explicit SSL support for non-servlet requests

Issue #149 resolved
Former user created an issue

HTTPRequest does not provide a means of setting SSL context or otherwise configuring for SSL outbound calls to the OP (at least not for non-servlet-based usage). The only way to achieve right now is to use HttpsUrlConnection's global default SSL socket factory, which is not acceptable if this code will be used outside of a vacuum.

Seeing as SSL is a requirement for the underlying OAuth2 spec, this seems like a REALLY big oversight.

Comments (8)

  1. Don Gay

    Without thoroughly reviewing the APIs, I hesitate, but off the top of my head, adding the following to HTTPRequest seems simple enough:

    public HttpsURLConnection toHttpsURLConnection(SSLSocketFactory)

    or

    public HttpsURLConnection toHttpsURLConnection(SSLContext)

  2. Connect2id OSS

    You're welcome. If you find other problematic areas, let us know so we can continue improving the SDK.

  3. Log in to comment