List of usage examples for org.eclipse.jgit.transport.http.apache.internal HttpApacheText get
public static HttpApacheText get()
From source file:jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.java
License:Apache License
private SSLContext getSSLContext() { if (ctx == null) { try {/*ww w . j a v a2 s. c o m*/ ctx = SSLContext.getInstance("TLS"); //$NON-NLS-1$ ctx.init(null, null, null); } catch (NoSuchAlgorithmException e) { throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e); } catch (KeyManagementException e) { throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e); } } return ctx; }
From source file:org.jenkinsci.plugins.gitclient.jgit.PreemptiveAuthHttpClientConnection.java
License:Eclipse Distribution License
private SSLContext getSSLContext() { if (ctx == null) { try {/*from ww w. j a v a 2s . c o m*/ ctx = SSLContext.getInstance("TLS"); //$NON-NLS-1$ } catch (NoSuchAlgorithmException e) { throw new IllegalStateException(HttpApacheText.get().unexpectedSSLContextException, e); } } return ctx; }