summaryrefslogtreecommitdiff
path: root/java/src/IceSSL/Plugin.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-11-26 10:27:33 +0100
committerBenoit Foucher <benoit@zeroc.com>2007-11-26 10:27:33 +0100
commita680e1c9cb73caa66d2cab436e28e95924dd8dbd (patch)
tree473abb5c732c0cc5cb61b44ed5f74fc74d83b1ec /java/src/IceSSL/Plugin.java
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.tar.bz2
ice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.tar.xz
ice-a680e1c9cb73caa66d2cab436e28e95924dd8dbd.zip
Remove JDK 1.4 IceSSL plugin
Diffstat (limited to 'java/src/IceSSL/Plugin.java')
-rw-r--r--java/src/IceSSL/Plugin.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/java/src/IceSSL/Plugin.java b/java/src/IceSSL/Plugin.java
new file mode 100644
index 00000000000..15aeb7692cc
--- /dev/null
+++ b/java/src/IceSSL/Plugin.java
@@ -0,0 +1,54 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package IceSSL;
+
+public interface Plugin extends Ice.Plugin
+{
+ //
+ // Establish the SSL context. This must be done before the
+ // plugin is initialized, therefore the application must define
+ // the property Ice.InitPlugins=0, set the context, and finally
+ // invoke initializePlugins on the PluginManager.
+ //
+ // When the application supplies its own SSL context, the
+ // plugin skips its normal property-based configuration.
+ //
+ void setContext(javax.net.ssl.SSLContext context);
+
+ //
+ // Obtain the SSL context. Use caution when modifying this value.
+ // Changes made to this value have no effect on existing connections.
+ //
+ javax.net.ssl.SSLContext getContext();
+
+ //
+ // Establish the certificate verifier object. This should be
+ // done before any connections are established.
+ //
+ void setCertificateVerifier(CertificateVerifier verifier);
+
+ //
+ // Obtain the certificate verifier object. Returns null if no
+ // verifier is set.
+ //
+ CertificateVerifier getCertificateVerifier();
+
+ //
+ // Establish the password callback object. This should be
+ // done before the plugin is initialized.
+ //
+ void setPasswordCallback(PasswordCallback callback);
+
+ //
+ // Obtain the password callback object. Returns null if no
+ // callback is set.
+ //
+ PasswordCallback getPasswordCallback();
+}