congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Finding current android device location
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • JLabel (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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