Class HC4TrustAllSSLSocketFactory
- java.lang.Object
-
- SSLSocketFactory
-
- org.apache.jmeter.protocol.http.util.HC4TrustAllSSLSocketFactory
-
- Direct Known Subclasses:
SlowHC4SSLSocketFactory
public class HC4TrustAllSSLSocketFactory extends SSLSocketFactoryApache HttpClient protocol factory to generate SSL sockets
-
-
Constructor Summary
Constructors Modifier Constructor Description HC4TrustAllSSLSocketFactory()Create an SSL factory which trusts all certificates and hosts.protectedHC4TrustAllSSLSocketFactory(SSLSocketFactory factory)Create an SSL factory which trusts all certificates and hosts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateLayeredSocket(Socket socket, String host, int port, boolean autoClose)SocketcreateSocket()SocketcreateSocket(HttpParams params)
-
-
-
Constructor Detail
-
HC4TrustAllSSLSocketFactory
public HC4TrustAllSSLSocketFactory() throws GeneralSecurityExceptionCreate 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
protected HC4TrustAllSSLSocketFactory(SSLSocketFactory factory) throws GeneralSecurityException
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 Detail
-
createSocket
public Socket createSocket(HttpParams params) throws IOException
- Throws:
IOException
-
createSocket
public Socket createSocket() throws IOException
- Throws:
IOException
-
createLayeredSocket
public Socket createLayeredSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
- Throws:
IOExceptionUnknownHostException
-
-