diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2010-03-22 22:38:31 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2010-03-22 22:38:31 +0000 |
| commit | 445d8f537fefde2bd122469474ae9113928d1275 (patch) | |
| tree | 0a900d73a21a65a9e7ff4639fbbe61a3efbe2061 /java/client | |
| parent | 3d31ccffd3d37ce488d82c7f649d5a15b98e431c (diff) | |
| download | qpid-python-445d8f537fefde2bd122469474ae9113928d1275.tar.gz | |
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
Diffstat (limited to 'java/client')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_0_10.java | 5 | ||||
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQTestConnection_0_10.java | 16 |
2 files changed, 21 insertions, 0 deletions
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(); + } +} |
