public class CustomCertificateTlsSocketFactory extends Object implements ISocketFactory
| Constructor and Description |
|---|
CustomCertificateTlsSocketFactory()
Constructor
|
CustomCertificateTlsSocketFactory(KeyStore theKeystore,
String theKeystorePass)
Constructor
|
CustomCertificateTlsSocketFactory(String theKeystoreType,
String theKeystoreFilename,
String theKeystorePassphrase)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createClientSocket()
Creates a new client socket and returns it
|
ServerSocket |
createServerSocket()
Creates a new server socket and returns it
|
void |
setKeystoreFilename(String theKeystoreFilename)
The filename to load as a keystore
|
void |
setKeystorePassphrase(String theKeystorePassphrase)
The passphrase for the keystore
|
void |
setKeystoreType(String theKeystoreType)
Sets the keystore type (e.g.
|
public CustomCertificateTlsSocketFactory()
public CustomCertificateTlsSocketFactory(KeyStore theKeystore, String theKeystorePass)
NullPointerException - If theKeystore is nullpublic CustomCertificateTlsSocketFactory(String theKeystoreType, String theKeystoreFilename, String theKeystorePassphrase)
theKeystoreType - The keystore type, e.g. "JKS"theKeystoreFilename - The path to the keystoretheKeystorePassphrase - The password for the keystorepublic Socket createClientSocket() throws IOException
createClientSocket in interface ISocketFactoryIOExceptionpublic ServerSocket createServerSocket() throws IOException
createServerSocket in interface ISocketFactoryIOExceptionpublic void setKeystoreFilename(String theKeystoreFilename)
public void setKeystorePassphrase(String theKeystorePassphrase)
public void setKeystoreType(String theKeystoreType)
Copyright © 2012–2017 University Health Network. All rights reserved.