Class SSLContextBuilder
java.lang.Object
com.github.tomakehurst.wiremock.http.ssl.SSLContextBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SSLContextBuilder
create()
protected void
initSSLContext
(SSLContext sslContext, Collection<KeyManager> keyManagers, Collection<TrustManager> trustManagers) loadKeyMaterial
(KeyStore keystore, char[] keyPassword) loadTrustMaterial
(TrustStrategy trustStrategy) loadTrustMaterial
(KeyStore truststore) loadTrustMaterial
(KeyStore truststore, TrustStrategy trustStrategy) toString()
-
Constructor Details
-
SSLContextBuilder
public SSLContextBuilder()
-
-
Method Details
-
create
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore) throws KeyStoreException, NoSuchAlgorithmException -
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(KeyStore truststore, TrustStrategy trustStrategy) throws NoSuchAlgorithmException, KeyStoreException -
loadTrustMaterial
-
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(KeyStore keystore, char[] keyPassword) throws NoSuchAlgorithmException, KeyStoreException, UnrecoverableKeyException -
initSSLContext
protected void initSSLContext(SSLContext sslContext, Collection<KeyManager> keyManagers, Collection<TrustManager> trustManagers) throws KeyManagementException - Throws:
KeyManagementException
-
build
-
toString
-