public class SecureClientDriver extends ClientDriver
ClientDriver to use secure
connections via HTTPS with a provided certificate.handler, jettyServer| Constructor and Description |
|---|
SecureClientDriver(ClientDriverJettyHandler handler,
int port,
KeyStore keyStore,
String password,
String certificateAlias)
Constructor which uses the given port to bind to.
|
SecureClientDriver(ClientDriverJettyHandler handler,
KeyStore keyStore,
String password,
String certificateAlias)
Constructor which uses a free port to bind to.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
Get the base URL which the ClientDriver is running on.
|
protected org.eclipse.jetty.util.ssl.SslContextFactory |
getSslContextFactory() |
addExpectation, createAndStartJetty, createConnector, getPort, noFailFastOnUnexpectedRequest, replaceConnector, reset, shutdown, shutdownQuietly, verify, verifypublic SecureClientDriver(ClientDriverJettyHandler handler, int port, KeyStore keyStore, String password, String certificateAlias)
handler - the ClientDriverJettyHandler to use.port - the port to bind to.keyStore - the key store to use for the certificate.password - the password for the certificate.certificateAlias - the alias of the certificate.public SecureClientDriver(ClientDriverJettyHandler handler, KeyStore keyStore, String password, String certificateAlias)
handler - the ClientDriverJettyHandler to use.keyStore - the key store to use for the certificate.password - the password for the certificate.certificateAlias - the alias of the certificate.protected org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
getSslContextFactory in class ClientDriverpublic String getBaseUrl()
ClientDrivergetBaseUrl in class ClientDriverThe base URL, which will be like "http://localhost:xxxx".
There is no trailing slash on this
Copyright © 2016. All Rights Reserved.