Class SSLContextBuilder
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.ssl.SSLContextBuilder
-
public class SSLContextBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SSLContextBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLContext
build()
static SSLContextBuilder
create()
protected void
initSSLContext(javax.net.ssl.SSLContext sslContext, java.util.Collection<javax.net.ssl.KeyManager> keyManagers, java.util.Collection<javax.net.ssl.TrustManager> trustManagers)
SSLContextBuilder
loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword)
SSLContextBuilder
loadTrustMaterial(TrustStrategy trustStrategy)
SSLContextBuilder
loadTrustMaterial(java.security.KeyStore truststore)
SSLContextBuilder
loadTrustMaterial(java.security.KeyStore truststore, TrustStrategy trustStrategy)
java.lang.String
toString()
-
-
-
Method Detail
-
create
public static SSLContextBuilder create()
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(java.security.KeyStore truststore) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException
- Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(java.security.KeyStore truststore, TrustStrategy trustStrategy) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException
- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
-
loadTrustMaterial
public SSLContextBuilder loadTrustMaterial(TrustStrategy trustStrategy)
-
loadKeyMaterial
public SSLContextBuilder loadKeyMaterial(java.security.KeyStore keystore, char[] keyPassword) throws java.security.NoSuchAlgorithmException, java.security.KeyStoreException, java.security.UnrecoverableKeyException
- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
-
initSSLContext
protected void initSSLContext(javax.net.ssl.SSLContext sslContext, java.util.Collection<javax.net.ssl.KeyManager> keyManagers, java.util.Collection<javax.net.ssl.TrustManager> trustManagers) throws java.security.KeyManagementException
- Throws:
java.security.KeyManagementException
-
build
public javax.net.ssl.SSLContext build() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException
- Throws:
java.security.NoSuchAlgorithmException
java.security.KeyManagementException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-