From 445d8f537fefde2bd122469474ae9113928d1275 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Mon, 22 Mar 2010 22:38:31 +0000 Subject: This is related to QPID-2447 Added QpidClientX509KeyManager (a customer KeyManager) which will return the ssl_client_alias specified in the Connection URL. Note the alias here is actually the certificate name and not the alias used in the keytool. I also fixed a minor bug in SSLUtil to retrive the identitiy of the local certificate instead of the peer's certificate. Added a test for the above JIRA. Added AMQTestConnection_0_10 which allows the SecurityLayer to be exposed for testing purposes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@926380 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/client/AMQConnectionDelegate_0_10.java | 5 +++++ .../org/apache/qpid/client/AMQTestConnection_0_10.java | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 java/client/src/main/java/org/apache/qpid/client/AMQTestConnection_0_10.java (limited to 'java/client') diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java index 9bded39af4..4717a9495b 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java @@ -398,4 +398,9 @@ public class AMQConnectionDelegate_0_10 implements AMQConnectionDelegate, Connec } return 0; } + + protected org.apache.qpid.transport.Connection getQpidConnection() + { + return _qpidConnection; + } } diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQTestConnection_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQTestConnection_0_10.java new file mode 100644 index 0000000000..540b6042bf --- /dev/null +++ b/java/client/src/main/java/org/apache/qpid/client/AMQTestConnection_0_10.java @@ -0,0 +1,16 @@ +package org.apache.qpid.client; + +import org.apache.qpid.transport.Connection; + +public class AMQTestConnection_0_10 extends AMQConnection +{ + public AMQTestConnection_0_10(String url) throws Exception + { + super(url); + } + + public Connection getConnection() + { + return((AMQConnectionDelegate_0_10)_delegate).getQpidConnection(); + } +} -- cgit v1.2.1