summaryrefslogtreecommitdiffstats
path: root/src/main/java/nn/pp/rc/JSSE14_SSLConnector.java
blob: 487b1b9360770399c1fc170ec0fe45472ac50435 (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
package nn.pp.rc;

import javax.net.ssl.SSLSocketFactory;

import de.spline.kvm.utils.ReflectionUtils;
import de.spline.kvm.utils.SSLUtils;

/**
 * We replace the JSSE14_SSLConnector with our own version.
 *
 * The default class from the applet uses a broken (outdated?)
 * X509PluginTrustManager. So we simply use your own SSLSocketFactory here,
 * that already has a correct setup for TLS connections of the remote console.
 */
public class JSSE14_SSLConnector extends aq
{
    public JSSE14_SSLConnector() {
        // Just visual stuff to beautify the display name of this connector
        ReflectionUtils.setField(aq.class, this, "do", "TLS");
    }

    public SSLSocketFactory a()
    {
        return SSLUtils.getSocketFactory();
    }
}