30 lines
1023 B
Java
30 lines
1023 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* com.tridium.crypto.core.io.CryptoSupport
|
|
*/
|
|
package com.tridium.platcrypto.socket;
|
|
|
|
import com.tridium.crypto.core.io.CryptoSupport;
|
|
import com.tridium.platcrypto.socket.CryptoClientSocketFactory;
|
|
import com.tridium.platcrypto.util.TridiumAppletX509TrustManager;
|
|
import javax.net.ssl.SSLContext;
|
|
import javax.net.ssl.TrustManager;
|
|
|
|
public class CryptoWbAppletClientSocketFactory
|
|
extends CryptoClientSocketFactory {
|
|
protected SSLContext createSSLContext(String string) throws Exception {
|
|
SSLContext sSLContext = SSLContext.getInstance(CryptoSupport.getProtocolName((String)string));
|
|
this.trustMgr = new TridiumAppletX509TrustManager();
|
|
TrustManager[] trustManagerArray = new TrustManager[]{this.trustMgr};
|
|
sSLContext.init(null, trustManagerArray, null);
|
|
return sSLContext;
|
|
}
|
|
|
|
public CryptoWbAppletClientSocketFactory(String string) throws Exception {
|
|
super(null, string);
|
|
}
|
|
}
|
|
|