Class SSLConnection
java.lang.Object
org.citrusframework.http.security.SSLConnection
- All Implemented Interfaces:
HttpSecureConnection
SSL secure connection to set up a proper SSL context and SSL connection socket factory.
Optionally uses provided keystore and truststore. If not set uses trust all strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionSSLConnection(Resource keyStore, String password) SSLConnection(Resource keyStore, String ksPassword, Resource trustStore, String tsPassword) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.io.HttpClientConnectionManagerCreate proper secure connection manager to be used on custom Http clients.org.eclipse.jetty.server.ServerConnectorgetServerConnector(int securePort) Create server connector representing the secure connection.hostnameVerifier(HostnameVerifier verifier) trustStore(String trustStore, String password) trustStore(Resource trustStore, String password)
-
Constructor Details
-
SSLConnection
public SSLConnection() -
SSLConnection
-
SSLConnection
-
-
Method Details
-
getServerConnector
public org.eclipse.jetty.server.ServerConnector getServerConnector(int securePort) Description copied from interface:HttpSecureConnectionCreate server connector representing the secure connection.- Specified by:
getServerConnectorin interfaceHttpSecureConnection- Returns:
-
getClientConnectionManager
public org.apache.hc.client5.http.io.HttpClientConnectionManager getClientConnectionManager()Description copied from interface:HttpSecureConnectionCreate proper secure connection manager to be used on custom Http clients.- Specified by:
getClientConnectionManagerin interfaceHttpSecureConnection- Returns:
-
trustStore
-
trustStore
-
keyStore
-
keyStore
-
hostnameVerifier
-