Codota Logo
HttpClientConnection.getSSLContext
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now