Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-673

MongoURI should allow configuring default SSL socket factory

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.11.0
    • None
    • API
    • None
    • Fully Compatible

    Description

      MongoURI should allow configuring a default SSL socket factory if the option ssl is set to true. This would allow specifying TLS as part of the connection URI.

      A possible implementation would look like this:

      parseOptions

      ...
      else if ( key.equals( "ssl" ) && _parseBoolean( value )) _options.socketFactory = SSLSocketFactory.getDefault();
      ...

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            christianbrensing Christian Brensing
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: