
no.nav.common.test.ssl.TrustAllSSLSocketFactory Maven / Gradle / Ivy
package no.nav.common.test.ssl;
import javax.net.ssl.SSLSocketFactory;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
public class TrustAllSSLSocketFactory extends SSLSocketFactory {
@Override
public Socket createSocket() throws IOException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket();
}
@Override
public Socket createSocket(String s, int i) throws IOException, UnknownHostException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket(s, i);
}
@Override
public Socket createSocket(String s, int i, InetAddress inetAddress, int i1) throws IOException, UnknownHostException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket(s, i, inetAddress, i1);
}
@Override
public Socket createSocket(InetAddress inetAddress, int i) throws IOException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket(inetAddress, i);
}
@Override
public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1) throws IOException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket(inetAddress, i, inetAddress1, i1);
}
@Override
public String[] getDefaultCipherSuites() {
return new String[0];
}
@Override
public String[] getSupportedCipherSuites() {
return new String[0];
}
@Override
public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException {
return SSLTestUtils.TRUST_ALL_SSL_SOCKET_FACTORY.createSocket(socket, s, i, b);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy