public class org.apache.zookeeper.common.X509UtilTest extends org.apache.zookeeper.common.BaseX509ParameterizedTestCase
{
private org.apache.zookeeper.common.X509Util x509Util;
private static final java.lang.String[] customCipherSuites;
public void <init>()
{
org.apache.zookeeper.common.X509UtilTest v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
specialinvoke v.<org.apache.zookeeper.common.BaseX509ParameterizedTestCase: void <init>()>();
return;
}
public void init(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
java.lang.Throwable v, v;
org.apache.zookeeper.common.X509TestContext v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v;
org.apache.zookeeper.common.ClientX509Util v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
specialinvoke v.<org.apache.zookeeper.common.BaseX509ParameterizedTestCase: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: void setSystemProperties(org.apache.zookeeper.common.X509Util,org.apache.zookeeper.common.KeyStoreFileType,org.apache.zookeeper.common.KeyStoreFileType)>(v, v, v);
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
label:
goto label;
label:
v := @caughtexception;
virtualinvoke v.<java.lang.Throwable: void addSuppressed(java.lang.Throwable)>(v);
label:
throw v;
label:
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>("zookeeper.serverCnxnFactory", "org.apache.zookeeper.server.NettyServerCnxnFactory");
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>("zookeeper.clientCnxnSocket", "org.apache.zookeeper.ClientCnxnSocketNetty");
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util> = v;
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void cleanUp()
{
org.apache.zookeeper.common.X509TestContext v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Boolean v, v;
java.lang.String v, v, v, v, v, v, v;
org.apache.zookeeper.common.X509Util v, v, v, v, v, v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: void clearSystemProperties(org.apache.zookeeper.common.X509Util)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslOcspEnabledProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslCrlEnabledProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getCipherSuitesProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslProtocolProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslHandshakeDetectionTimeoutMillisProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>("com.sun.net.ssl.checkRevocation");
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>("com.sun.security.enableCRLDP");
v = <java.lang.Boolean: java.lang.Boolean FALSE>;
v = virtualinvoke v.<java.lang.Boolean: java.lang.String toString()>();
staticinvoke <java.security.Security: void setProperty(java.lang.String,java.lang.String)>("ocsp.enable", v);
v = <java.lang.Boolean: java.lang.Boolean FALSE>;
v = virtualinvoke v.<java.lang.Boolean: java.lang.String toString()>();
staticinvoke <java.security.Security: void setProperty(java.lang.String,java.lang.String)>("com.sun.security.enableCRLDP", v);
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>("zookeeper.serverCnxnFactory");
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>("zookeeper.clientCnxnSocket");
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
return;
}
public void testCreateSSLContextWithoutCustomProtocol(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
javax.net.ssl.SSLContext v;
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
v = virtualinvoke v.<javax.net.ssl.SSLContext: java.lang.String getProtocol()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("TLSv.2", v);
return;
}
public void testCreateSSLContextWithCustomProtocol(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
javax.net.ssl.SSLContext v;
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslProtocolProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, "TLSv.1");
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
v = virtualinvoke v.<javax.net.ssl.SSLContext: java.lang.String getProtocol()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("TLSv.1", v);
return;
}
public void testCreateSSLContextWithoutKeyStoreLocation(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslKeystoreLocationProperty()>();
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
return;
}
public void testCreateSSLContextWithoutKeyStorePassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testCreateSSLContextWithoutKeyStorePassword_0__132: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$SSLContextException;", v);
return;
}
public void testCreateSSLContext_withKeyStorePasswordFromFile(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslKeystorePasswdProperty()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslKeystorePasswdPathProperty()>();
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void testCreateSSLContext_withPasswordFromFile(java.lang.String,java.lang.String,java.lang.String)>(v, v, v);
return;
}
public void testCreateSSLContext_withTrustStorePasswordFromFile(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslTruststorePasswdProperty()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslTruststorePasswdPathProperty()>();
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void testCreateSSLContext_withPasswordFromFile(java.lang.String,java.lang.String,java.lang.String)>(v, v, v);
return;
}
public void testCreateSSLContext_withWrongKeyStorePasswordFromFile(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.String v, v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslKeystorePasswdPathProperty()>();
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void testCreateSSLContext_withWrongPasswordFromFile(java.lang.String,java.lang.String)>(v, v);
return;
}
public void testCreateSSLContext_withWrongTrustStorePasswordFromFile(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.String v, v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslTruststorePasswdPathProperty()>();
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void testCreateSSLContext_withWrongPasswordFromFile(java.lang.String,java.lang.String)>(v, v);
return;
}
public void testCreateSSLContextWithCustomCipherSuites(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
javax.net.ssl.SSLSocket v;
org.apache.zookeeper.common.X509Util v;
java.lang.String[] v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void setCustomCipherSuites()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLSocket createSSLSocket()>();
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = virtualinvoke v.<javax.net.ssl.SSLSocket: java.lang.String[] getEnabledCipherSuites()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertArrayEquals(java.lang.Object[],java.lang.Object[])>(v, v);
return;
}
public void testCRLEnabled(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.lang.Boolean v, v, v;
java.lang.String v, v, v, v, v;
boolean v, v, v;
org.apache.zookeeper.common.X509Util v, v;
org.apache.zookeeper.common.X509KeyType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslCrlEnabledProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, "true");
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.net.ssl.checkRevocation");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.security.enableCRLDP");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = staticinvoke <java.security.Security: java.lang.String getProperty(java.lang.String)>("ocsp.enable");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
return;
}
public void testCRLDisabled(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.Boolean v, v, v;
java.lang.String v, v, v, v;
boolean v, v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.net.ssl.checkRevocation");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.security.enableCRLDP");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = staticinvoke <java.security.Security: java.lang.String getProperty(java.lang.String)>("ocsp.enable");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
return;
}
public void testOCSPEnabled(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.lang.Boolean v, v, v;
java.lang.String v, v, v, v, v;
boolean v, v, v;
org.apache.zookeeper.common.X509Util v, v;
org.apache.zookeeper.common.X509KeyType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslOcspEnabledProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, "true");
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.net.ssl.checkRevocation");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("com.sun.security.enableCRLDP");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = staticinvoke <java.security.Security: java.lang.String getProperty(java.lang.String)>("ocsp.enable");
v = staticinvoke <java.lang.Boolean: java.lang.Boolean valueOf(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.Boolean: boolean booleanValue()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testCreateSSLSocket(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
javax.net.ssl.SSLSocket v;
org.apache.zookeeper.common.X509Util v;
java.lang.String[] v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void setCustomCipherSuites()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLSocket createSSLSocket()>();
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = virtualinvoke v.<javax.net.ssl.SSLSocket: java.lang.String[] getEnabledCipherSuites()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertArrayEquals(java.lang.Object[],java.lang.Object[])>(v, v);
return;
}
public void testCreateSSLServerSocketWithoutPort(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.String[] v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
javax.net.ssl.SSLServerSocket v;
java.lang.String v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void setCustomCipherSuites()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLServerSocket createSSLServerSocket()>();
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = virtualinvoke v.<javax.net.ssl.SSLServerSocket: java.lang.String[] getEnabledCipherSuites()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertArrayEquals(java.lang.Object[],java.lang.Object[])>(v, v);
v = virtualinvoke v.<javax.net.ssl.SSLServerSocket: boolean getNeedClientAuth()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testCreateSSLServerSocketWithPort(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.String[] v, v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
javax.net.ssl.SSLServerSocket v;
int v, v;
java.lang.String v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
specialinvoke v.<org.apache.zookeeper.common.X509UtilTest: void setCustomCipherSuites()>();
v = staticinvoke <org.apache.zookeeper.PortAssignment: int unique()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLServerSocket createSSLServerSocket(int)>(v);
v = virtualinvoke v.<javax.net.ssl.SSLServerSocket: int getLocalPort()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(v, v);
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = virtualinvoke v.<javax.net.ssl.SSLServerSocket: java.lang.String[] getEnabledCipherSuites()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertArrayEquals(java.lang.Object[],java.lang.Object[])>(v, v);
v = virtualinvoke v.<javax.net.ssl.SSLServerSocket: boolean getNeedClientAuth()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testLoadPEMKeyStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, v);
return;
}
public void testLoadPEMKeyStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, null, v);
return;
}
public void testLoadPEMKeyStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, null);
return;
}
public void testLoadPEMKeyStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testLoadPEMKeyStoreWithWrongPassword_1__133: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$KeyManagerException;", v);
return;
}
public void testLoadPEMTrustStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, v, 0, 0, 1, 1, 0);
return;
}
public void testLoadPEMTrustStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, null, v, 0, 0, 1, 1, 0);
return;
}
public void testLoadPEMTrustStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PEM>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, null, 0, 0, 1, 1, 0);
return;
}
public void testLoadJKSKeyStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, v);
return;
}
public void testLoadJKSKeyStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, null, v);
return;
}
public void testLoadJKSKeyStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, null);
return;
}
public void testLoadJKSKeyStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testLoadJKSKeyStoreWithWrongPassword_2__134: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$KeyManagerException;", v);
return;
}
public void testLoadJKSTrustStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, v, 1, 1, 1, 1, 0);
return;
}
public void testLoadJKSTrustStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, null, v, 0, 0, 1, 1, 0);
return;
}
public void testLoadJKSTrustStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType JKS>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, null, 1, 1, 1, 1, 0);
return;
}
public void testLoadJKSTrustStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testLoadJKSTrustStoreWithWrongPassword_3__135: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$TrustManagerException;", v);
return;
}
public void testLoadPKCS12KeyStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, v);
return;
}
public void testLoadPKCS12KeyStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, null, v);
return;
}
public void testLoadPKCS12KeyStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509KeyManager createKeyManager(java.lang.String,java.lang.String,java.lang.String)>(v, v, null);
return;
}
public void testLoadPKCS12KeyStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testLoadPKCS12KeyStoreWithWrongPassword_4__136: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$KeyManagerException;", v);
return;
}
public void testLoadPKCS12TrustStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, v, 1, 1, 1, 1, 0);
return;
}
public void testLoadPKCS12TrustStoreNullPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v, v;
boolean v;
org.apache.zookeeper.common.KeyStoreFileType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = virtualinvoke v.<java.lang.String: boolean isEmpty()>();
if v != 0 goto label;
return;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.KeyStoreFileType: java.lang.String getPropertyValue()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, null, v, 0, 0, 1, 1, 0);
return;
}
public void testLoadPKCS12TrustStoreAutodetectStoreFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v, v;
org.apache.zookeeper.common.KeyStoreFileType v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
staticinvoke <org.apache.zookeeper.common.X509Util: javax.net.ssl.X509TrustManager createTrustManager(java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean,boolean,boolean)>(v, v, null, 1, 1, 1, 1, 0);
return;
}
public void testLoadPKCS12TrustStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testLoadPKCS12TrustStoreWithWrongPassword_5__137: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$TrustManagerException;", v);
return;
}
public void testGetSslHandshakeDetectionTimeoutMillisProperty(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
java.lang.Throwable v, v, v, v, v, v;
org.apache.zookeeper.common.X509UtilTest v;
java.lang.Integer v;
int v, v, v, v;
java.lang.String v, v, v, v, v;
org.apache.zookeeper.common.ClientX509Util v, v, v;
org.apache.zookeeper.common.X509Util v, v, v, v;
org.apache.zookeeper.common.X509KeyType v, v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: int getSslHandshakeTimeoutMillis()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(5000, v);
v = staticinvoke <java.lang.Integer: java.lang.String toString(int)>(5001);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslHandshakeDetectionTimeoutMillisProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, v);
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
label:
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: int getSslHandshakeTimeoutMillis()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(5001, v);
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
label:
goto label;
label:
v := @caughtexception;
virtualinvoke v.<java.lang.Throwable: void addSuppressed(java.lang.Throwable)>(v);
label:
throw v;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslHandshakeDetectionTimeoutMillisProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, "0");
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
label:
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: int getSslHandshakeTimeoutMillis()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(5000, v);
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
label:
goto label;
label:
v := @caughtexception;
virtualinvoke v.<java.lang.Throwable: void addSuppressed(java.lang.Throwable)>(v);
label:
throw v;
label:
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getSslHandshakeDetectionTimeoutMillisProperty()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, "-1");
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
label:
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: int getSslHandshakeTimeoutMillis()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(5000, v);
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
label:
goto label;
label:
v := @caughtexception;
virtualinvoke v.<java.lang.Throwable: void addSuppressed(java.lang.Throwable)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testCreateSSLContext_invalidCustomSSLContextClass(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testCreateSSLContext_invalidCustomSSLContextClass_6__138: org.junit.jupiter.api.function.Executable bootstrap$()>();
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$SSLContextException;", v);
return;
}
public void testCreateSSLContext_validCustomSSLContextClass(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
javax.net.ssl.SSLContext v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.ZKConfig v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.Class v;
java.lang.String v, v, v;
org.apache.zookeeper.common.ClientX509Util v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = new org.apache.zookeeper.common.ZKConfig;
specialinvoke v.<org.apache.zookeeper.common.ZKConfig: void <init>()>();
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
v = virtualinvoke v.<org.apache.zookeeper.common.ClientX509Util: java.lang.String getSslContextSupplierClassProperty()>();
v = class "Lorg/apache/zookeeper/common/X509UtilTest$SslContextSupplier;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
virtualinvoke v.<org.apache.zookeeper.common.ZKConfig: void setProperty(java.lang.String,java.lang.String)>(v, v);
v = virtualinvoke v.<org.apache.zookeeper.common.ClientX509Util: javax.net.ssl.SSLContext createSSLContext(org.apache.zookeeper.common.ZKConfig)>(v);
v = staticinvoke <javax.net.ssl.SSLContext: javax.net.ssl.SSLContext getDefault()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
private static void forceClose(java.net.Socket)
{
java.net.Socket v;
boolean v;
v := @parameter: java.net.Socket;
if v == null goto label;
v = virtualinvoke v.<java.net.Socket: boolean isClosed()>();
if v == 0 goto label;
label:
return;
label:
return;
}
private static void forceClose(java.net.ServerSocket)
{
java.net.ServerSocket v;
boolean v;
v := @parameter: java.net.ServerSocket;
if v == null goto label;
v = virtualinvoke v.<java.net.ServerSocket: boolean isClosed()>();
if v == 0 goto label;
label:
return;
label:
return;
}
public void testClientRenegotiationFails(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Throwable
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testClientRenegotiationFails_7__139: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljavax/net/ssl/SSLHandshakeException;", v);
return;
}
public void testGetDefaultCipherSuitesJava8(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.String[] v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509Util: java.lang.String[] getDefaultCipherSuitesForJavaVersion(java.lang.String)>("1.8");
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("CBC");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testGetDefaultCipherSuitesJava9(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.String[] v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509Util: java.lang.String[] getDefaultCipherSuitesForJavaVersion(java.lang.String)>("9");
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("GCM");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testGetDefaultCipherSuitesJava10(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.String[] v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509Util: java.lang.String[] getDefaultCipherSuitesForJavaVersion(java.lang.String)>("10");
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("GCM");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testGetDefaultCipherSuitesJava11(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.String[] v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509Util: java.lang.String[] getDefaultCipherSuitesForJavaVersion(java.lang.String)>("11");
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("GCM");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testGetDefaultCipherSuitesUnknownVersion(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
java.lang.String[] v;
java.lang.Integer v;
org.apache.zookeeper.common.X509KeyType v, v;
java.lang.String v, v;
boolean v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509Util: java.lang.String[] getDefaultCipherSuitesForJavaVersion(java.lang.String)>("notaversion");
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean contains(java.lang.CharSequence)>("CBC");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void testGetDefaultCipherSuitesNullVersion(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.X509UtilTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testGetDefaultCipherSuitesNullVersion_8__140: org.junit.jupiter.api.function.Executable bootstrap$()>();
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/NullPointerException;", v);
return;
}
private void setCustomCipherSuites()
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v, v;
java.lang.String[] v, v;
java.lang.String v, v, v, v;
org.apache.zookeeper.common.ClientX509Util v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509Util: java.lang.String getCipherSuitesProperty()>();
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = v[0];
v = <org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites>;
v = v[1];
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u,\u0001");
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: void close()>();
v = new org.apache.zookeeper.common.ClientX509Util;
specialinvoke v.<org.apache.zookeeper.common.ClientX509Util: void <init>()>();
v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util> = v;
return;
}
private void testCreateSSLContext_withPasswordFromFile(java.lang.String, java.lang.String, java.lang.String) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.apache.zookeeper.common.X509Util v;
java.lang.String v, v, v, v;
java.nio.file.Path v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = staticinvoke <org.apache.zookeeper.common.SecretUtilsTest: java.nio.file.Path createSecretFile(java.lang.String)>(v);
staticinvoke <java.lang.System: java.lang.String clearProperty(java.lang.String)>(v);
v = interfaceinvoke v.<java.nio.file.Path: java.lang.String toString()>();
staticinvoke <java.lang.System: java.lang.String setProperty(java.lang.String,java.lang.String)>(v, v);
v = v.<org.apache.zookeeper.common.X509UtilTest: org.apache.zookeeper.common.X509Util x509Util>;
virtualinvoke v.<org.apache.zookeeper.common.X509Util: javax.net.ssl.SSLContext getDefaultSSLContext()>();
return;
}
private void testCreateSSLContext_withWrongPasswordFromFile(java.lang.String, java.lang.String) throws java.lang.Exception
{
org.apache.zookeeper.common.X509UtilTest v;
org.junit.jupiter.api.function.Executable v;
java.lang.String v, v, v;
java.nio.file.Path v;
v := @this: org.apache.zookeeper.common.X509UtilTest;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001_wrong");
v = staticinvoke <org.apache.zookeeper.common.SecretUtilsTest: java.nio.file.Path createSecretFile(java.lang.String)>(v);
v = staticinvoke <org.apache.zookeeper.common.X509UtilTest$lambda_testCreateSSLContext_withWrongPasswordFromFile_9__141: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.X509UtilTest,java.lang.String,java.nio.file.Path)>(v, v, v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Lorg/apache/zookeeper/common/X509Exception$SSLContextException;", v);
return;
}
static void <clinit>()
{
java.lang.String[] v;
v = newarray (java.lang.String)[2];
v[0] = "SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA";
v[1] = "SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA";
<org.apache.zookeeper.common.X509UtilTest: java.lang.String[] customCipherSuites> = v;
return;
}
}