congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
HttpClientConnection.getSSLContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getSSLContext
method
in
org.eclipse.jgit.transport.http.apache.HttpClientConnection

Best Java code snippets using org.eclipse.jgit.transport.http.apache.HttpClientConnection.getSSLContext (Showing top 6 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit.http.apache

  /** {@inheritDoc} */
  @Override
  public void configure(KeyManager[] km, TrustManager[] tm,
      SecureRandom random) throws KeyManagementException {
    getSSLContext().init(km, tm, random);
  }
}
origin: sonia.jgit/org.eclipse.jgit.http.apache

  public void configure(KeyManager[] km, TrustManager[] tm,
      SecureRandom random) throws KeyManagementException {
    getSSLContext().init(km, tm, random);
  }
}
origin: com.madgag/org.eclipse.jgit.http.apache

  public void configure(KeyManager[] km, TrustManager[] tm,
      SecureRandom random) throws KeyManagementException {
    getSSLContext().init(km, tm, random);
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.http.apache

    getSSLContext(), hostnameverifier);
clientBuilder.setSSLSocketFactory(sslConnectionFactory);
Registry<ConnectionSocketFactory> registry = RegistryBuilder
origin: sonia.jgit/org.eclipse.jgit.http.apache

private HttpClient getClient() {
  if (client == null)
    client = new DefaultHttpClient();
  HttpParams params = client.getParams();
  if (proxy != null && !Proxy.NO_PROXY.equals(proxy)) {
    isUsingProxy = true;
    InetSocketAddress adr = (InetSocketAddress) proxy.address();
    params.setParameter(ConnRoutePNames.DEFAULT_PROXY,
        new HttpHost(adr.getHostName(), adr.getPort()));
  }
  if (timeout != null)
    params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,
        timeout.intValue());
  if (readTimeout != null)
    params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,
        readTimeout.intValue());
  if (followRedirects != null)
    params.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS,
        followRedirects.booleanValue());
  if (hostnameverifier != null) {
    SSLSocketFactory sf;
    sf = new SSLSocketFactory(getSSLContext(), hostnameverifier);
    Scheme https = new Scheme("https", 443, sf); //$NON-NLS-1$
    client.getConnectionManager().getSchemeRegistry().register(https);
  }
  return client;
}
origin: com.madgag/org.eclipse.jgit.http.apache

private HttpClient getClient() {
  if (client == null)
    client = new DefaultHttpClient();
  HttpParams params = client.getParams();
  if (proxy != null && !Proxy.NO_PROXY.equals(proxy)) {
    isUsingProxy = true;
    InetSocketAddress adr = (InetSocketAddress) proxy.address();
    params.setParameter(ConnRoutePNames.DEFAULT_PROXY,
        new HttpHost(adr.getHostName(), adr.getPort()));
  }
  if (timeout != null)
    params.setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,
        timeout.intValue());
  if (readTimeout != null)
    params.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,
        readTimeout.intValue());
  if (followRedirects != null)
    params.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS,
        followRedirects.booleanValue());
  if (hostnameverifier != null) {
    SSLSocketFactory sf;
    sf = new SSLSocketFactory(getSSLContext(), hostnameverifier);
    Scheme https = new Scheme("https", 443, sf); //$NON-NLS-1$
    client.getConnectionManager().getSchemeRegistry().register(https);
  }
  return client;
}
org.eclipse.jgit.transport.http.apacheHttpClientConnectiongetSSLContext

Popular methods of HttpClientConnection

  • <init>
  • execute
  • getClient

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 21 Best Atom Packages for 2021
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