diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-04-26 03:22:49 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-04-26 03:22:49 +0000 |
commit | d24b35ce1f999f86c6f856821d51f4adf72c76e6 (patch) | |
tree | b1d1dbe50724a4d42ce1e46622aa49fde0a5492d /java/src/IceSSL/Plugin.java | |
parent | use two stages for plugin initialization; refactoring to remove Context (diff) | |
download | ice-d24b35ce1f999f86c6f856821d51f4adf72c76e6.tar.bz2 ice-d24b35ce1f999f86c6f856821d51f4adf72c76e6.tar.xz ice-d24b35ce1f999f86c6f856821d51f4adf72c76e6.zip |
use two stages for plugin initialization
Diffstat (limited to 'java/src/IceSSL/Plugin.java')
-rw-r--r-- | java/src/IceSSL/Plugin.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/java/src/IceSSL/Plugin.java b/java/src/IceSSL/Plugin.java index 64eac3f1b2b..f5555fa2a4e 100644 --- a/java/src/IceSSL/Plugin.java +++ b/java/src/IceSSL/Plugin.java @@ -11,14 +11,22 @@ 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. // - // Manually initialize the plugin. The application must set the property - // IceSSL.DelayInit=1 in order to use this method. + void setContext(javax.net.ssl.SSLContext context); + // - // It is legal to pass null as the argument, in which case the plugin - // obtains its configuration via properties. + // Obtain the SSL context. Use caution when modifying this value. + // Changes made to this value have no effect on existing connections. // - void initialize(javax.net.ssl.SSLContext context); + javax.net.ssl.SSLContext getContext(); // // Establish the certificate verifier object. This should be |