public class SslSocketFactoryFactory extends Object
PerfCakeConst.KEYSTORES_DIR_PROPERTY
, then in
keystores
directory and then in current working directory or the full path specified in the location parameters.Constructor and Description |
---|
SslSocketFactoryFactory() |
Modifier and Type | Method and Description |
---|---|
static SSLContext |
newSslContext(String keyStoreLocation,
String keyStorePassword,
String trustStoreLocation,
String trustStorePassword)
Gets a new SSL context configured with the provided key and trust store using TLS protocol.
|
static SSLContext |
newSslContext(String keyStoreLocation,
String keyStorePassword,
String trustStoreLocation,
String trustStorePassword,
String protocol)
Gets a new SSL context configured with the provided key and trust store.
|
static SSLSocketFactory |
newSslSocketFactory(String keyStoreLocation,
String keyStorePassword,
String trustStoreLocation,
String trustStorePassword)
Gets a new SSL socket factory configured with the provided key and trust store using TLS protocol.
|
static SSLSocketFactory |
newSslSocketFactory(String keyStoreLocation,
String keyStorePassword,
String trustStoreLocation,
String trustStorePassword,
String protocol)
Gets a new SSL socket factory configured with the provided key and trust store.
|
public static SSLSocketFactory newSslSocketFactory(String keyStoreLocation, String keyStorePassword, String trustStoreLocation, String trustStorePassword) throws PerfCakeException
keyStoreLocation
- Key store location.keyStorePassword
- Key store password.trustStoreLocation
- Trust store location.trustStorePassword
- Trust store password.PerfCakeException
- When it was not possible to create the SSL socket factory.public static SSLSocketFactory newSslSocketFactory(String keyStoreLocation, String keyStorePassword, String trustStoreLocation, String trustStorePassword, String protocol) throws PerfCakeException
keyStoreLocation
- Key store location.keyStorePassword
- Key store password.trustStoreLocation
- Trust store location.trustStorePassword
- Trust store password.protocol
- Protocol for the factory (TLS, SSL...).PerfCakeException
- When it was not possible to create the SSL socket factory.public static SSLContext newSslContext(String keyStoreLocation, String keyStorePassword, String trustStoreLocation, String trustStorePassword) throws PerfCakeException
keyStoreLocation
- Key store location.keyStorePassword
- Key store password.trustStoreLocation
- Trust store location.trustStorePassword
- Trust store password.PerfCakeException
- When it was not possible to create the SSL context.public static SSLContext newSslContext(String keyStoreLocation, String keyStorePassword, String trustStoreLocation, String trustStorePassword, String protocol) throws PerfCakeException
keyStoreLocation
- Key store location.keyStorePassword
- Key store password.trustStoreLocation
- Trust store location.trustStorePassword
- Trust store password.protocol
- Protocol for the factory (TLS, SSL...).PerfCakeException
- When it was not possible to create the SSL context.Copyright © 2010–2017 PerfCake Community. All rights reserved.