Class HC4TrustAllSSLSocketFactory
java.lang.Object
SSLSocketFactory
org.apache.jmeter.protocol.http.util.HC4TrustAllSSLSocketFactory
- Direct Known Subclasses:
SlowHC4SSLSocketFactory
public class HC4TrustAllSSLSocketFactory
extends SSLSocketFactory
Apache HttpClient protocol factory to generate SSL sockets
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate an SSL factory which trusts all certificates and hosts.protected
Create an SSL factory which trusts all certificates and hosts. -
Method Summary
Modifier and TypeMethodDescriptioncreateLayeredSocket
(Socket socket, String host, int port, boolean autoClose) createSocket
(HttpParams params)
-
Constructor Details
-
HC4TrustAllSSLSocketFactory
Create an SSL factory which trusts all certificates and hosts.SSLSocketFactory#SSLSocketFactory(TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)
- Throws:
GeneralSecurityException
- if there's a problem setting up the security
-
HC4TrustAllSSLSocketFactory
Create an SSL factory which trusts all certificates and hosts.SSLSocketFactory#SSLSocketFactory(TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)
- Parameters:
factory
- javax.net.ssl.SSLSocketFactory- Throws:
GeneralSecurityException
- if there's a problem setting up the security
-
-
Method Details
-
createSocket
- Throws:
IOException
-
createSocket
- Throws:
IOException
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException - Throws:
IOException
UnknownHostException
-