Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apache/directory-studio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java')
-rw-r--r--plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java b/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java
index 7c7d1ffb6..51194dd9c 100644
--- a/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java
+++ b/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/ConnectionWrapper.java
@@ -20,10 +20,10 @@
package org.apache.directory.studio.connection.core.io;
-import java.security.cert.X509Certificate;
import java.util.Collection;
import javax.naming.directory.SearchControls;
+import javax.net.ssl.SSLSession;
import org.apache.directory.api.ldap.model.entry.Entry;
import org.apache.directory.api.ldap.model.entry.Modification;
@@ -50,7 +50,7 @@ public interface ConnectionWrapper
*
* @param monitor the progres monitor
*/
- X509Certificate[] connect( StudioProgressMonitor monitor );
+ void connect( StudioProgressMonitor monitor );
/**
@@ -90,6 +90,14 @@ public interface ConnectionWrapper
/**
+ * Gets the {@link SSLSession} associated with the connection.
+ *
+ * @return the {@link SSLSession} associated with the connection or null if the connection is not secured
+ */
+ SSLSession getSslSession();
+
+
+ /**
* Sets the binary attributes.
*
* @param binaryAttributes the binary attributes