public final class org.apache.hc.core.ssl.SSLContexts extends java.lang.Object
{
private void <init>()
{
org.apache.hc.core.ssl.SSLContexts v;
v := @this: org.apache.hc.core.ssl.SSLContexts;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static javax.net.ssl.SSLContext createDefault() throws org.apache.hc.core.ssl.SSLInitializationException
{
javax.net.ssl.SSLContext v;
java.security.GeneralSecurityException v;
org.apache.hc.core.ssl.SSLInitializationException v;
java.lang.String v;
label:
v = staticinvoke <javax.net.ssl.SSLContext: javax.net.ssl.SSLContext getInstance(java.lang.String)>("TLS");
virtualinvoke v.<javax.net.ssl.SSLContext: void init(javax.net.ssl.KeyManager[],javax.net.ssl.TrustManager[],java.security.SecureRandom)>(null, null, null);
label:
return v;
label:
v := @caughtexception;
v = new org.apache.hc.core.ssl.SSLInitializationException;
v = virtualinvoke v.<java.security.GeneralSecurityException: java.lang.String getMessage()>();
specialinvoke v.<org.apache.hc.core.ssl.SSLInitializationException: void <init>(java.lang.String,java.lang.Throwable)>(v, v);
throw v;
catch java.security.NoSuchAlgorithmException from label to label with label;
catch java.security.KeyManagementException from label to label with label;
}
public static javax.net.ssl.SSLContext createSystemDefault() throws org.apache.hc.core.ssl.SSLInitializationException
{
javax.net.ssl.SSLContext v, v;
java.security.NoSuchAlgorithmException v;
label:
v = staticinvoke <javax.net.ssl.SSLContext: javax.net.ssl.SSLContext getDefault()>();
label:
return v;
label:
v := @caughtexception;
v = staticinvoke <org.apache.hc.core.ssl.SSLContexts: javax.net.ssl.SSLContext createDefault()>();
return v;
catch java.security.NoSuchAlgorithmException from label to label with label;
}
public static org.apache.hc.core.ssl.SSLContextBuilder custom()
{
org.apache.hc.core.ssl.SSLContextBuilder v;
v = staticinvoke <org.apache.hc.core.ssl.SSLContextBuilder: org.apache.hc.core.ssl.SSLContextBuilder create()>();
return v;
}
}