final class org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt extends java.lang.Object
{
private static final java.lang.reflect.Method IS_CONSCRYPT_SSLENGINE;
private static final boolean CAN_INSTANCE_PROVIDER;
private static java.lang.reflect.Method loadIsConscryptEngine()
{
java.lang.Throwable v;
java.lang.Class[] v;
java.lang.Class v, v;
java.lang.ClassLoader v;
java.lang.reflect.Method v;
label:
v = class "Lorg/apache/hive/kudu/org/apache/kudu/shaded/io/netty/handler/ssl/ConscryptAlpnSslEngine;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <java.lang.Class: java.lang.Class forName(java.lang.String,boolean,java.lang.ClassLoader)>("org.conscrypt.Conscrypt", 1, v);
v = newarray (java.lang.Class)[1];
v[0] = class "Ljavax/net/ssl/SSLEngine;";
v = virtualinvoke v.<java.lang.Class: java.lang.reflect.Method getMethod(java.lang.String,java.lang.Class[])>("isConscrypt", v);
label:
return v;
label:
v := @caughtexception;
return null;
catch java.lang.Throwable from label to label with label;
}
private static boolean canInstanceProvider()
{
java.lang.Throwable v;
java.lang.Class v, v;
java.lang.ClassLoader v;
label:
v = class "Lorg/apache/hive/kudu/org/apache/kudu/shaded/io/netty/handler/ssl/ConscryptAlpnSslEngine;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = staticinvoke <java.lang.Class: java.lang.Class forName(java.lang.String,boolean,java.lang.ClassLoader)>("org.conscrypt.OpenSSLProvider", 1, v);
virtualinvoke v.<java.lang.Class: java.lang.Object newInstance()>();
label:
return 1;
label:
v := @caughtexception;
return 0;
catch java.lang.Throwable from label to label with label;
}
static boolean isAvailable()
{
int v;
java.lang.reflect.Method v;
boolean v, v;
v = <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: boolean CAN_INSTANCE_PROVIDER>;
if v == 0 goto label;
v = <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: java.lang.reflect.Method IS_CONSCRYPT_SSLENGINE>;
if v == null goto label;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.util.internal.PlatformDependent: int javaVersion()>();
if v < 8 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
static boolean isEngineSupported(javax.net.ssl.SSLEngine)
{
boolean v, v, v;
javax.net.ssl.SSLEngine v;
v := @parameter: javax.net.ssl.SSLEngine;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: boolean isAvailable()>();
if v == 0 goto label;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: boolean isConscryptEngine(javax.net.ssl.SSLEngine)>(v);
if v == 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
private static boolean isConscryptEngine(javax.net.ssl.SSLEngine)
{
java.lang.IllegalAccessException v;
java.lang.Object[] v;
java.lang.RuntimeException v;
java.lang.reflect.InvocationTargetException v;
javax.net.ssl.SSLEngine v;
java.lang.Object v;
java.lang.reflect.Method v;
boolean v;
v := @parameter: javax.net.ssl.SSLEngine;
label:
v = <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: java.lang.reflect.Method IS_CONSCRYPT_SSLENGINE>;
v = newarray (java.lang.Object)[1];
v[0] = v;
v = virtualinvoke v.<java.lang.reflect.Method: java.lang.Object invoke(java.lang.Object,java.lang.Object[])>(null, v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
label:
return v;
label:
v := @caughtexception;
return 0;
label:
v := @caughtexception;
v = new java.lang.RuntimeException;
specialinvoke v.<java.lang.RuntimeException: void <init>(java.lang.Throwable)>(v);
throw v;
catch java.lang.IllegalAccessException from label to label with label;
catch java.lang.reflect.InvocationTargetException from label to label with label;
}
private void <init>()
{
org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt v;
v := @this: org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
static void <clinit>()
{
java.lang.reflect.Method v;
boolean v;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: java.lang.reflect.Method loadIsConscryptEngine()>();
<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: java.lang.reflect.Method IS_CONSCRYPT_SSLENGINE> = v;
v = staticinvoke <org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: boolean canInstanceProvider()>();
<org.apache.hive.kudu.org.apache.kudu.shaded.io.netty.handler.ssl.Conscrypt: boolean CAN_INSTANCE_PROVIDER> = v;
return;
}
}