code: @InterfaceAudience.Public
      public void allowSelfSignedSSLCertificates() {
          // SSLSocketFactory that bypasses certificate verification.
          try {
              setSSLSocketFactory(selfSignedSSLSocketFactory());
          } catch (GeneralSecurityException e) {
              throw new RuntimeException(e);
          }
  
          // HostnameVerifier that bypasses hotname verification
          setHostnameVerifier(ignoreHostnameVerifier());
      }
docs: This is a convenience method to allow couchbase lite to connect to servers
  that use self-signed SSL certs.
  <p/>
  *DO NOT USE THIS IN PRODUCTION*
  <p/>
  For more information, see:
  <p/>
  https://github.com/couchbase/couchbase-lite-java-core/pull/9