Package au.com.dius.pact.consumer.model
Class MockHttpsKeystoreProviderConfig
-
- All Implemented Interfaces:
public final class MockHttpsKeystoreProviderConfig extends MockProviderConfig
Mock Provider configuration for HTTPS using a keystore
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringkeystoreprivate final Stringpasswordprivate final Stringhostnameprivate final Integerportprivate final PactSpecVersionpactVersionprivate final Stringschemeprivate final MockServerImplementationmockServerImplementationprivate final BooleanaddCloseHeaderprivate final StringtransportRegistryEntry
-
Method Summary
Modifier and Type Method Description final StringgetKeystore()final StringgetPassword()StringgetHostname()IntegergetPort()PactSpecVersiongetPactVersion()StringgetScheme()final static MockProviderConfighttpsKeystoreConfig(String hostname, Integer port, String keystore, String password, PactSpecVersion pactVersion)Creates instance of config final static MockProviderConfighttpsKeystoreConfig(String hostname, Integer port, String keystore, String password)Creates instance of config final static MockProviderConfighttpsKeystoreConfig(String hostname, String keystore, String password)Creates instance of config final static MockProviderConfighttpsKeystoreConfig(String keystore, String password)Creates instance of config -
Methods inherited from class au.com.dius.pact.consumer.model.MockProviderConfig
address, getAddCloseHeader, getMockServerImplementation, getTransportRegistryEntry, mergeWith, toPluginMockServerConfig, url -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getKeystore
final String getKeystore()
-
getPassword
final String getPassword()
-
getHostname
String getHostname()
-
getPactVersion
PactSpecVersion getPactVersion()
-
httpsKeystoreConfig
@JvmOverloads() final static MockProviderConfig httpsKeystoreConfig(String hostname, Integer port, String keystore, String password, PactSpecVersion pactVersion)
Creates instance of config
- Parameters:
hostname- Name of the host to mockport- Port the mock service should listen onkeystore- Full path (including file name) of keystore to use.password- Keystore passwordpactVersion- Version of {@link PactSpecVersion}
-
httpsKeystoreConfig
@JvmOverloads() final static MockProviderConfig httpsKeystoreConfig(String hostname, Integer port, String keystore, String password)
Creates instance of config
- Parameters:
hostname- Name of the host to mockport- Port the mock service should listen onkeystore- Full path (including file name) of keystore to use.password- Keystore password
-
httpsKeystoreConfig
@JvmOverloads() final static MockProviderConfig httpsKeystoreConfig(String hostname, String keystore, String password)
Creates instance of config
- Parameters:
hostname- Name of the host to mockkeystore- Full path (including file name) of keystore to use.password- Keystore password
-
httpsKeystoreConfig
@JvmOverloads() final static MockProviderConfig httpsKeystoreConfig(String keystore, String password)
Creates instance of config
- Parameters:
keystore- Full path (including file name) of keystore to use.password- Keystore password
-
-
-
-