blob: ba714104582c602f5ef1fd0b69458c444a3eaca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// **********************************************************************
//
// Copyright (c) 2003-2014 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;
class PluginI implements Plugin
{
public PluginI(Ice.Communicator communicator)
{
IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);
_sharedInstance = new SharedInstance(facade);
//
// Register the endpoint factory. We have to do this now, rather than
// in initialize, because the communicator may need to interpret
// proxies before the plug-in is fully initialized.
//
facade.addEndpointFactory(
new EndpointFactoryI(new Instance(_sharedInstance, IceSSL.EndpointType.value, "ssl")));
}
public void initialize()
{
_sharedInstance.initialize();
}
public void destroy()
{
}
public void setContext(javax.net.ssl.SSLContext context)
{
_sharedInstance.context(context);
}
public javax.net.ssl.SSLContext getContext()
{
return _sharedInstance.context();
}
public void setCertificateVerifier(CertificateVerifier verifier)
{
_sharedInstance.setCertificateVerifier(verifier);
}
public CertificateVerifier getCertificateVerifier()
{
return _sharedInstance.getCertificateVerifier();
}
public void setPasswordCallback(PasswordCallback callback)
{
_sharedInstance.setPasswordCallback(callback);
}
public PasswordCallback getPasswordCallback()
{
return _sharedInstance.getPasswordCallback();
}
public void setKeystoreStream(java.io.InputStream stream)
{
_sharedInstance.setKeystoreStream(stream);
}
public void setTruststoreStream(java.io.InputStream stream)
{
_sharedInstance.setTruststoreStream(stream);
}
public void addSeedStream(java.io.InputStream stream)
{
_sharedInstance.addSeedStream(stream);
}
private SharedInstance _sharedInstance;
}
|