From 4daff1f3fd3f8e9e4f0135eee76fa1ca2ce02e4e Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 28 Feb 2007 21:01:32 +0000
Subject: [PATCH] Add a new key manager which provides the ability to specify which certificate should be presented based on its alias (aka its nickname). This is used both by server-side code which needs to present a certificate to clients, as well as by client-side code which needs to present a certificate to the server.
---
opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
index 4253411..dd0c2ef 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -901,8 +901,8 @@
configEntry.getConfigAttribute(certNameStub);
if (certNameAttr == null)
{
- // This is fine -- we'll just use the default.
- sslServerCertNickname = DEFAULT_SSL_CERT_NICKNAME;
+ // This is fine -- We'll just let the server pick one.
+ sslServerCertNickname = null;
}
else
{
@@ -1792,6 +1792,20 @@
/**
+ * Retrieves the nickname of the server certificate that should be used in
+ * conjunction with this LDAP connection handler.
+ *
+ * @return The nickname of the server certificate that should be used in
+ * conjunction with this LDAP connection handler.
+ */
+ public String getSSLServerCertNickname()
+ {
+ return sslServerCertNickname;
+ }
+
+
+
+ /**
* Retrieves the maximum ASN.1 element value length that will be allowed by
* this connection handler.
*
--
Gitblit v1.10.0