public class org.apache.activemq.ActiveMQSslConnectionFactory extends org.apache.activemq.ActiveMQConnectionFactory
{
protected javax.net.ssl.KeyManager[] keyManager;
protected javax.net.ssl.TrustManager[] trustManager;
protected java.security.SecureRandom secureRandom;
protected java.lang.String trustStoreType;
protected java.lang.String trustStore;
protected java.lang.String trustStorePassword;
protected java.lang.String keyStoreType;
protected java.lang.String keyStore;
protected java.lang.String keyStorePassword;
protected java.lang.String keyStoreKeyPassword;
public void <init>()
{
java.lang.String v, v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
specialinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: void <init>()>();
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStoreType> = v;
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreType> = v;
return;
}
public void <init>(java.lang.String)
{
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.lang.String v, v, v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
specialinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: void <init>(java.lang.String)>(v);
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStoreType> = v;
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreType> = v;
return;
}
public void <init>(java.net.URI)
{
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.lang.String v, v;
java.net.URI v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.net.URI;
specialinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: void <init>(java.net.URI)>(v);
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStoreType> = v;
v = staticinvoke <java.security.KeyStore: java.lang.String getDefaultType()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreType> = v;
return;
}
public void setKeyAndTrustManagers(javax.net.ssl.KeyManager[], javax.net.ssl.TrustManager[], java.security.SecureRandom)
{
java.security.SecureRandom v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
javax.net.ssl.TrustManager[] v;
javax.net.ssl.KeyManager[] v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: javax.net.ssl.KeyManager[];
v := @parameter: javax.net.ssl.TrustManager[];
v := @parameter: java.security.SecureRandom;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] keyManager> = v;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] trustManager> = v;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.security.SecureRandom secureRandom> = v;
return;
}
protected org.apache.activemq.transport.Transport createTransport() throws javax.jms.JMSException
{
java.lang.Throwable v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.security.SecureRandom v;
org.apache.activemq.broker.SslContext v, v;
java.lang.String v, v, v;
org.apache.activemq.transport.Transport v;
javax.jms.JMSException v;
java.lang.Exception v;
javax.net.ssl.TrustManager[] v, v, v;
javax.net.ssl.KeyManager[] v, v, v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = staticinvoke <org.apache.activemq.broker.SslContext: org.apache.activemq.broker.SslContext getCurrentSslContext()>();
label:
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStore>;
if v != null goto label;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStore>;
if v == null goto label;
label:
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] createKeyManager()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] keyManager> = v;
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] createTrustManager()>();
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] trustManager> = v;
label:
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] keyManager>;
if v != null goto label;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] trustManager>;
if v == null goto label;
label:
v = new org.apache.activemq.broker.SslContext;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] keyManager>;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] trustManager>;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.security.SecureRandom secureRandom>;
specialinvoke v.<org.apache.activemq.broker.SslContext: void <init>(javax.net.ssl.KeyManager[],javax.net.ssl.TrustManager[],java.security.SecureRandom)>(v, v, v);
staticinvoke <org.apache.activemq.broker.SslContext: void setCurrentSslContext(org.apache.activemq.broker.SslContext)>(v);
label:
v = specialinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: org.apache.activemq.transport.Transport createTransport()>();
label:
staticinvoke <org.apache.activemq.broker.SslContext: void setCurrentSslContext(org.apache.activemq.broker.SslContext)>(v);
return v;
label:
v := @caughtexception;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Exception)>(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[])>("Could not create Transport. Reason: \u0001");
v = staticinvoke <org.apache.activemq.util.JMSExceptionSupport: javax.jms.JMSException create(java.lang.String,java.lang.Exception)>(v, v);
throw v;
label:
v := @caughtexception;
staticinvoke <org.apache.activemq.broker.SslContext: void setCurrentSslContext(org.apache.activemq.broker.SslContext)>(v);
throw v;
catch java.lang.Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
}
protected javax.net.ssl.TrustManager[] createTrustManager() throws java.lang.Exception
{
java.lang.Throwable v;
javax.net.ssl.TrustManagerFactory v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.security.KeyStore v;
javax.net.ssl.TrustManager[] v;
char[] v;
java.lang.String v, v, v, v, v;
java.io.InputStream v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = null;
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String getTrustStoreType()>();
v = staticinvoke <java.security.KeyStore: java.security.KeyStore getInstance(java.lang.String)>(v);
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStore>;
if v == null goto label;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStore>;
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.io.InputStream getInputStream(java.lang.String)>(v);
label:
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStorePassword>;
v = virtualinvoke v.<java.lang.String: char[] toCharArray()>();
virtualinvoke v.<java.security.KeyStore: void load(java.io.InputStream,char[])>(v, v);
v = staticinvoke <javax.net.ssl.TrustManagerFactory: java.lang.String getDefaultAlgorithm()>();
v = staticinvoke <javax.net.ssl.TrustManagerFactory: javax.net.ssl.TrustManagerFactory getInstance(java.lang.String)>(v);
virtualinvoke v.<javax.net.ssl.TrustManagerFactory: void init(java.security.KeyStore)>(v);
v = virtualinvoke v.<javax.net.ssl.TrustManagerFactory: javax.net.ssl.TrustManager[] getTrustManagers()>();
label:
if v == null goto label;
virtualinvoke v.<java.io.InputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return v;
catch java.lang.Throwable from label to label with label;
}
protected javax.net.ssl.KeyManager[] createKeyManager() throws java.lang.Exception
{
java.lang.Throwable v;
byte[] v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.io.ByteArrayInputStream v;
int v;
java.lang.String v, v, v, v, v, v, v, v;
javax.net.ssl.KeyManagerFactory v;
java.security.KeyStore v;
char[] v, v;
javax.net.ssl.KeyManager[] v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = staticinvoke <javax.net.ssl.KeyManagerFactory: java.lang.String getDefaultAlgorithm()>();
v = staticinvoke <javax.net.ssl.KeyManagerFactory: javax.net.ssl.KeyManagerFactory getInstance(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String getKeyStoreType()>();
v = staticinvoke <java.security.KeyStore: java.security.KeyStore getInstance(java.lang.String)>(v);
v = null;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStore>;
if v == null goto label;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStore>;
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: byte[] loadClientCredential(java.lang.String)>(v);
if v == null goto label;
v = lengthof v;
if v <= 0 goto label;
v = new java.io.ByteArrayInputStream;
specialinvoke v.<java.io.ByteArrayInputStream: void <init>(byte[])>(v);
label:
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStorePassword>;
v = virtualinvoke v.<java.lang.String: char[] toCharArray()>();
virtualinvoke v.<java.security.KeyStore: void load(java.io.InputStream,char[])>(v, v);
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreKeyPassword>;
if v == null goto label;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreKeyPassword>;
v = virtualinvoke v.<java.lang.String: char[] toCharArray()>();
goto label;
label:
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStorePassword>;
v = virtualinvoke v.<java.lang.String: char[] toCharArray()>();
label:
virtualinvoke v.<javax.net.ssl.KeyManagerFactory: void init(java.security.KeyStore,char[])>(v, v);
v = virtualinvoke v.<javax.net.ssl.KeyManagerFactory: javax.net.ssl.KeyManager[] getKeyManagers()>();
label:
virtualinvoke v.<java.io.ByteArrayInputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
return v;
catch java.lang.Throwable from label to label with label;
}
protected byte[] loadClientCredential(java.lang.String) throws java.io.IOException
{
java.lang.Throwable v, v;
byte[] v, v;
java.io.ByteArrayOutputStream v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
int v;
java.lang.String v;
java.io.InputStream v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
if v != null goto label;
return null;
label:
v = virtualinvoke v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.io.InputStream getInputStream(java.lang.String)>(v);
label:
v = new java.io.ByteArrayOutputStream;
specialinvoke v.<java.io.ByteArrayOutputStream: void <init>()>();
label:
v = newarray (byte)[512];
v = virtualinvoke v.<java.io.InputStream: int read(byte[])>(v);
label:
if v <= 0 goto label;
virtualinvoke v.<java.io.ByteArrayOutputStream: void write(byte[],int,int)>(v, 0, v);
v = virtualinvoke v.<java.io.InputStream: int read(byte[])>(v);
goto label;
label:
v = virtualinvoke v.<java.io.ByteArrayOutputStream: byte[] toByteArray()>();
label:
virtualinvoke v.<java.io.ByteArrayOutputStream: void close()>();
label:
virtualinvoke v.<java.io.InputStream: void close()>();
return v;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
throw v;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
protected java.io.InputStream getInputStream(java.lang.String) throws java.io.IOException
{
org.apache.activemq.ActiveMQSslConnectionFactory v;
java.net.MalformedURLException v;
java.net.URL v;
java.io.IOException v;
java.io.FileInputStream v;
java.io.File v;
java.lang.Exception v;
java.lang.Thread v;
java.lang.ClassLoader v;
java.lang.String v, v;
boolean v;
java.io.InputStream v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
label:
v = new java.io.File;
specialinvoke v.<java.io.File: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<java.io.File: boolean exists()>();
if v == 0 goto label;
v = new java.io.FileInputStream;
specialinvoke v.<java.io.FileInputStream: void <init>(java.io.File)>(v);
label:
return v;
label:
v := @caughtexception;
label:
v = new java.net.URL;
specialinvoke v.<java.net.URL: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<java.net.URL: java.io.InputStream openStream()>();
if v == null goto label;
label:
return v;
label:
v := @caughtexception;
label:
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
v = virtualinvoke v.<java.lang.Thread: java.lang.ClassLoader getContextClassLoader()>();
v = virtualinvoke v.<java.lang.ClassLoader: java.io.InputStream getResourceAsStream(java.lang.String)>(v);
if v != null goto label;
v = new java.io.IOException;
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[])>("Could not load resource: \u0001");
specialinvoke v.<java.io.IOException: void <init>(java.lang.String)>(v);
throw v;
label:
return v;
catch java.lang.Exception from label to label with label;
catch java.net.MalformedURLException from label to label with label;
}
public java.lang.String getTrustStoreType()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStoreType>;
return v;
}
public void setTrustStoreType(java.lang.String)
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStoreType> = v;
return;
}
public java.lang.String getTrustStore()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStore>;
return v;
}
public void setTrustStore(java.lang.String) throws java.lang.Exception
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStore> = v;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.TrustManager[] trustManager> = null;
return;
}
public java.lang.String getTrustStorePassword()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStorePassword>;
return v;
}
public void setTrustStorePassword(java.lang.String)
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String trustStorePassword> = v;
return;
}
public java.lang.String getKeyStoreType()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreType>;
return v;
}
public void setKeyStoreType(java.lang.String)
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreType> = v;
return;
}
public java.lang.String getKeyStore()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStore>;
return v;
}
public void setKeyStore(java.lang.String) throws java.lang.Exception
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStore> = v;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: javax.net.ssl.KeyManager[] keyManager> = null;
return;
}
public java.lang.String getKeyStorePassword()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStorePassword>;
return v;
}
public void setKeyStorePassword(java.lang.String)
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStorePassword> = v;
return;
}
public java.lang.String getKeyStoreKeyPassword()
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v = v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreKeyPassword>;
return v;
}
public void setKeyStoreKeyPassword(java.lang.String)
{
java.lang.String v;
org.apache.activemq.ActiveMQSslConnectionFactory v;
v := @this: org.apache.activemq.ActiveMQSslConnectionFactory;
v := @parameter: java.lang.String;
v.<org.apache.activemq.ActiveMQSslConnectionFactory: java.lang.String keyStoreKeyPassword> = v;
return;
}
}