link start!
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package javax.baja.security.crypto.se;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.net.Socket;
|
||||
import java.net.UnknownHostException;
|
||||
import javax.baja.security.crypto.BTlsEnum;
|
||||
import javax.baja.security.crypto.CertManagerFactory;
|
||||
import javax.net.SocketFactory;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
|
||||
/*
|
||||
* Illegal identifiers - consider using --renameillegalidents true
|
||||
*/
|
||||
public class BajaSSLSocketFactory
|
||||
extends SSLSocketFactory {
|
||||
private SSLSocketFactory factory;
|
||||
|
||||
public static SocketFactory getDefault() {
|
||||
try {
|
||||
return new BajaSSLSocketFactory();
|
||||
}
|
||||
catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
return SSLSocketFactory.getDefault();
|
||||
}
|
||||
}
|
||||
|
||||
public Socket createSocket(Socket socket, String string, int n, boolean bl) throws IOException {
|
||||
return this.factory.createSocket(socket, string, n, bl);
|
||||
}
|
||||
|
||||
public Socket createSocket(String string, int n) throws IOException, UnknownHostException {
|
||||
return this.factory.createSocket(string, n);
|
||||
}
|
||||
|
||||
public Socket createSocket(InetAddress inetAddress, int n) throws IOException {
|
||||
return this.factory.createSocket(inetAddress, n);
|
||||
}
|
||||
|
||||
public Socket createSocket(String string, int n, InetAddress inetAddress, int n2) throws IOException, UnknownHostException {
|
||||
return this.factory.createSocket(string, n, inetAddress, n2);
|
||||
}
|
||||
|
||||
public Socket createSocket(InetAddress inetAddress, int n, InetAddress inetAddress2, int n2) throws IOException {
|
||||
return this.factory.createSocket(inetAddress, n, inetAddress2, n2);
|
||||
}
|
||||
|
||||
public String[] getDefaultCipherSuites() {
|
||||
return this.factory.getDefaultCipherSuites();
|
||||
}
|
||||
|
||||
public String[] getSupportedCipherSuites() {
|
||||
return this.factory.getSupportedCipherSuites();
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.factory.hashCode();
|
||||
}
|
||||
|
||||
public boolean equals(Object object) {
|
||||
return this.factory.equals(object);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.factory.toString();
|
||||
}
|
||||
|
||||
private final /* synthetic */ void this() {
|
||||
this.factory = null;
|
||||
}
|
||||
|
||||
public BajaSSLSocketFactory() throws Exception {
|
||||
this.this();
|
||||
this.factory = (SSLSocketFactory)((Object)CertManagerFactory.getInstanceEx().getClientSocketFactory(BTlsEnum.DEFAULT.getTag()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user