| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.protocols.jmx; |
| | | |
| | |
| | | import javax.management.remote.JMXServiceURL; |
| | | import javax.management.remote.rmi.RMIConnectorServer; |
| | | |
| | | import org.opends.server.api.KeyManagerProvider; |
| | | import org.opends.server.config.JMXMBean; |
| | | import org.opends.server.extensions.NullKeyManagerProvider; |
| | | |
| | | import org.opends.server.types.DebugLogCategory; |
| | | import org.opends.server.types.DebugLogSeverity; |
| | |
| | | // --------------------- |
| | | // |
| | | // Get a Server socket factory |
| | | KeyManagerProvider provider = jmxConnectionHandler.keyManagerProvider; |
| | | if (provider == null) |
| | | { |
| | | provider = new NullKeyManagerProvider(); |
| | | } |
| | | |
| | | SSLContext ctx = SSLContext.getInstance("TLSv1"); |
| | | ctx.init( |
| | | jmxConnectionHandler.jmxKeyManager.getKeyManagers(), |
| | | provider.getKeyManagers(), |
| | | null, |
| | | null); |
| | | SSLSocketFactory ssf = ctx.getSocketFactory(); |