Tabnine Logo
OkHttpClient.sslSocketFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
sslSocketFactory
method
in
okhttp3.OkHttpClient

Best Java code snippets using okhttp3.OkHttpClient.sslSocketFactory (Showing top 16 results out of 315)

origin: square/okhttp

@Override public SSLSocketFactory getSSLSocketFactory() {
 return delegate.client.sslSocketFactory();
}
origin: SonarSource/sonarqube

@Test
public void build_with_custom_sslSocketFactory() {
 SSLSocketFactory sslSocketFactory = mock(SSLSocketFactory.class);
 OkHttpClient okHttpClient = underTest
  .setSSLSocketFactory(sslSocketFactory)
  .build();
 assertThat(okHttpClient.sslSocketFactory()).isEqualTo(sslSocketFactory);
}
origin: SonarSource/sonarqube

@Test
public void build_default_instance_of_OkHttpClient() {
 OkHttpClient okHttpClient = underTest.build();
 assertThat(okHttpClient.proxy()).isNull();
 assertThat(okHttpClient.networkInterceptors()).hasSize(1);
 assertThat(okHttpClient.sslSocketFactory()).isNotNull();
}
origin: SonarSource/sonarqube

@Test
public void support_tls_versions_of_java8() {
 underTest = HttpConnector.newBuilder().url(serverUrl).build();
 assertTlsAndClearTextSpecifications(underTest);
 assertThat(underTest.okHttpClient().sslSocketFactory()).isInstanceOf(SSLSocketFactory.getDefault().getClass());
}
origin: square/okhttp

private Address createAddress(HttpUrl url) {
 SSLSocketFactory sslSocketFactory = null;
 HostnameVerifier hostnameVerifier = null;
 CertificatePinner certificatePinner = null;
 if (url.isHttps()) {
  sslSocketFactory = client.sslSocketFactory();
  hostnameVerifier = client.hostnameVerifier();
  certificatePinner = client.certificatePinner();
 }
 return new Address(url.host(), url.port(), client.dns(), client.socketFactory(),
   sslSocketFactory, hostnameVerifier, certificatePinner, client.proxyAuthenticator(),
   client.proxy(), client.protocols(), client.connectionSpecs(), client.proxySelector());
}
origin: com.squareup.okhttp3/okhttp

private Address createAddress(HttpUrl url) {
 SSLSocketFactory sslSocketFactory = null;
 HostnameVerifier hostnameVerifier = null;
 CertificatePinner certificatePinner = null;
 if (url.isHttps()) {
  sslSocketFactory = client.sslSocketFactory();
  hostnameVerifier = client.hostnameVerifier();
  certificatePinner = client.certificatePinner();
 }
 return new Address(url.host(), url.port(), client.dns(), client.socketFactory(),
   sslSocketFactory, hostnameVerifier, certificatePinner, client.proxyAuthenticator(),
   client.proxy(), client.protocols(), client.connectionSpecs(), client.proxySelector());
}
origin: com.github.ljun20160606/okhttp-urlconnection

@Override public SSLSocketFactory getSSLSocketFactory() {
 return delegate.client.sslSocketFactory();
}
origin: com.palantir.remoting3/okhttp-clients

@Override
public SSLSocketFactory sslSocketFactory() {
  return delegate.sslSocketFactory();
}
origin: com.palantir.conjure.java.runtime/okhttp-clients

@Override
public SSLSocketFactory sslSocketFactory() {
  return delegate.sslSocketFactory();
}
origin: palantir/conjure-java-runtime

@Override
public SSLSocketFactory sslSocketFactory() {
  return delegate.sslSocketFactory();
}
origin: com.squareup.okhttp3/okhttp-urlconnection

@Override public SSLSocketFactory getSSLSocketFactory() {
 return delegate.client.sslSocketFactory();
}
origin: apache/servicemix-bundles

@Override public SSLSocketFactory getSSLSocketFactory() {
 return delegate.client.sslSocketFactory();
}
origin: plaid/plaid-java

testSslSocket = (SSLSocket) testOkHttpClient.sslSocketFactory().createSocket();
origin: duzechao/OKHttpUtils

 private static Address createAddress(OkHttpClient client, Request request) {
  SSLSocketFactory sslSocketFactory = null;
  HostnameVerifier hostnameVerifier = null;
  CertificatePinner certificatePinner = null;
  if (request.isHttps()) {
   sslSocketFactory = client.sslSocketFactory();
   hostnameVerifier = client.hostnameVerifier();
   certificatePinner = client.certificatePinner();
  }

  return new Address(request.url().host(), request.url().port(), client.dns(),
    client.socketFactory(), sslSocketFactory, hostnameVerifier, certificatePinner,
    client.proxyAuthenticator(), client.proxy(), client.protocols(),
    client.connectionSpecs(), client.proxySelector());
 }
}
origin: com.github.ljun20160606/okhttp

private Address createAddress(HttpUrl url) {
 SSLSocketFactory sslSocketFactory = null;
 HostnameVerifier hostnameVerifier = null;
 CertificatePinner certificatePinner = null;
 if (url.isHttps()) {
  sslSocketFactory = client.sslSocketFactory();
  hostnameVerifier = client.hostnameVerifier();
  certificatePinner = client.certificatePinner();
 }
 return new Address(url.host(), url.port(), client.dns(), client.socketFactory(),
   sslSocketFactory, hostnameVerifier, certificatePinner, client.proxyAuthenticator(),
   client.proxy(), client.protocols(), client.connectionSpecs(), client.proxySelector());
}
origin: apache/servicemix-bundles

private Address createAddress(HttpUrl url) {
 SSLSocketFactory sslSocketFactory = null;
 HostnameVerifier hostnameVerifier = null;
 CertificatePinner certificatePinner = null;
 if (url.isHttps()) {
  sslSocketFactory = client.sslSocketFactory();
  hostnameVerifier = client.hostnameVerifier();
  certificatePinner = client.certificatePinner();
 }
 return new Address(url.host(), url.port(), client.dns(), client.socketFactory(),
   sslSocketFactory, hostnameVerifier, certificatePinner, client.proxyAuthenticator(),
   client.proxy(), client.protocols(), client.connectionSpecs(), client.proxySelector());
}
okhttp3OkHttpClientsslSocketFactory

Popular methods of OkHttpClient

  • newCall
    Prepares the request to be executed at some point in the future.
  • <init>
  • newBuilder
  • dispatcher
  • connectionPool
  • newWebSocket
    Uses request to connect a new web socket.
  • cache
  • connectTimeoutMillis
    Default connect timeout (in milliseconds).
  • interceptors
    Returns an immutable list of interceptors that observe the full span of each call: from before the c
  • readTimeoutMillis
    Default read timeout (in milliseconds).
  • proxy
  • networkInterceptors
    Returns an immutable list of interceptors that observe a single network request and response. These
  • proxy,
  • networkInterceptors,
  • cookieJar,
  • writeTimeoutMillis,
  • followRedirects,
  • hostnameVerifier,
  • retryOnConnectionFailure,
  • authenticator,
  • connectionSpecs

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • findViewById (Activity)
  • getSystemService (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now