diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-12-17 18:26:36 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-12-17 18:26:36 +0000 |
commit | d40e4d54b0cb4b59255a3b107c491f74c179a220 (patch) | |
tree | 9d6ec8526ab4b8f765cf8f9a72eaf51a642ce6d8 /java/src/IceSSL/SslEndpointFactory.java | |
parent | SSL changes (diff) | |
download | ice-d40e4d54b0cb4b59255a3b107c491f74c179a220.tar.bz2 ice-d40e4d54b0cb4b59255a3b107c491f74c179a220.tar.xz ice-d40e4d54b0cb4b59255a3b107c491f74c179a220.zip |
initial check-in
Diffstat (limited to 'java/src/IceSSL/SslEndpointFactory.java')
-rw-r--r-- | java/src/IceSSL/SslEndpointFactory.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/java/src/IceSSL/SslEndpointFactory.java b/java/src/IceSSL/SslEndpointFactory.java new file mode 100644 index 00000000000..2a8ef105649 --- /dev/null +++ b/java/src/IceSSL/SslEndpointFactory.java @@ -0,0 +1,52 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2005 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; + +final class SslEndpointFactory implements IceInternal.EndpointFactory +{ + SslEndpointFactory(IceInternal.Instance instance, javax.net.ssl.SSLContext ctx) + { + _instance = instance; + _ctx = ctx; + } + + public short + type() + { + return SslEndpoint.TYPE; + } + + public String + protocol() + { + return "ssl"; + } + + public IceInternal.Endpoint + create(String str) + { + return new SslEndpoint(_instance, _ctx, str); + } + + public IceInternal.Endpoint + read(IceInternal.BasicStream s) + { + return new SslEndpoint(s, _ctx); + } + + public void + destroy() + { + _instance = null; + } + + private IceInternal.Instance _instance; + private javax.net.ssl.SSLContext _ctx; +} |