public static class TSSLTransportFactory.TSSLTransportParameters
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
cipherSuites |
protected boolean |
clientAuth |
protected boolean |
isKeyStoreSet |
protected boolean |
isTrustStoreSet |
protected java.lang.String |
keyManagerType |
protected java.lang.String |
keyPass |
protected java.lang.String |
keyStore |
protected java.io.InputStream |
keyStoreStream |
protected java.lang.String |
keyStoreType |
protected java.lang.String |
protocol |
protected java.lang.String |
trustManagerType |
protected java.lang.String |
trustPass |
protected java.lang.String |
trustStore |
protected java.io.InputStream |
trustStoreStream |
protected java.lang.String |
trustStoreType |
| Constructor and Description |
|---|
TSSLTransportParameters() |
TSSLTransportParameters(java.lang.String protocol,
java.lang.String[] cipherSuites)
Create parameters specifying the protocol and cipher suites
|
TSSLTransportParameters(java.lang.String protocol,
java.lang.String[] cipherSuites,
boolean clientAuth)
Create parameters specifying the protocol, cipher suites and if client authentication
is required
|
| Modifier and Type | Method and Description |
|---|---|
void |
requireClientAuth(boolean clientAuth)
Set if client authentication is required
|
void |
setKeyStore(java.io.InputStream keyStoreStream,
java.lang.String keyPass)
Set the keystore and password
|
void |
setKeyStore(java.io.InputStream keyStoreStream,
java.lang.String keyPass,
java.lang.String keyManagerType,
java.lang.String keyStoreType)
Set the keystore, password, certificate type and the store type
|
void |
setKeyStore(java.lang.String keyStore,
java.lang.String keyPass)
Set the keystore and password
|
void |
setKeyStore(java.lang.String keyStore,
java.lang.String keyPass,
java.lang.String keyManagerType,
java.lang.String keyStoreType)
Set the keystore, password, certificate type and the store type
|
void |
setTrustStore(java.io.InputStream trustStoreStream,
java.lang.String trustPass)
Set the truststore and password
|
void |
setTrustStore(java.io.InputStream trustStoreStream,
java.lang.String trustPass,
java.lang.String trustManagerType,
java.lang.String trustStoreType)
Set the truststore, password, certificate type and the store type
|
void |
setTrustStore(java.lang.String trustStore,
java.lang.String trustPass)
Set the truststore and password
|
void |
setTrustStore(java.lang.String trustStore,
java.lang.String trustPass,
java.lang.String trustManagerType,
java.lang.String trustStoreType)
Set the truststore, password, certificate type and the store type
|
protected java.lang.String protocol
protected java.lang.String keyStore
protected java.io.InputStream keyStoreStream
protected java.lang.String keyPass
protected java.lang.String keyManagerType
protected java.lang.String keyStoreType
protected java.lang.String trustStore
protected java.io.InputStream trustStoreStream
protected java.lang.String trustPass
protected java.lang.String trustManagerType
protected java.lang.String trustStoreType
protected java.lang.String[] cipherSuites
protected boolean clientAuth
protected boolean isKeyStoreSet
protected boolean isTrustStoreSet
public TSSLTransportParameters()
public TSSLTransportParameters(java.lang.String protocol,
java.lang.String[] cipherSuites)
protocol - The specific protocol (TLS/SSL) can be specified with versionscipherSuites - public TSSLTransportParameters(java.lang.String protocol,
java.lang.String[] cipherSuites,
boolean clientAuth)
protocol - The specific protocol (TLS/SSL) can be specified with versionscipherSuites - clientAuth - public void setKeyStore(java.lang.String keyStore,
java.lang.String keyPass,
java.lang.String keyManagerType,
java.lang.String keyStoreType)
keyStore - Location of the Keystore on diskkeyPass - Keystore passwordkeyManagerType - The default is X509keyStoreType - The default is JKSpublic void setKeyStore(java.io.InputStream keyStoreStream,
java.lang.String keyPass,
java.lang.String keyManagerType,
java.lang.String keyStoreType)
keyStoreStream - Keystore content input streamkeyPass - Keystore passwordkeyManagerType - The default is X509keyStoreType - The default is JKSpublic void setKeyStore(java.lang.String keyStore,
java.lang.String keyPass)
keyStore - Location of the Keystore on diskkeyPass - Keystore passwordpublic void setKeyStore(java.io.InputStream keyStoreStream,
java.lang.String keyPass)
keyStoreStream - Keystore content input streamkeyPass - Keystore passwordpublic void setTrustStore(java.lang.String trustStore,
java.lang.String trustPass,
java.lang.String trustManagerType,
java.lang.String trustStoreType)
trustStore - Location of the Truststore on disktrustPass - Truststore passwordtrustManagerType - The default is X509trustStoreType - The default is JKSpublic void setTrustStore(java.io.InputStream trustStoreStream,
java.lang.String trustPass,
java.lang.String trustManagerType,
java.lang.String trustStoreType)
trustStoreStream - Truststore content input streamtrustPass - Truststore passwordtrustManagerType - The default is X509trustStoreType - The default is JKSpublic void setTrustStore(java.lang.String trustStore,
java.lang.String trustPass)
trustStore - Location of the Truststore on disktrustPass - Truststore passwordpublic void setTrustStore(java.io.InputStream trustStoreStream,
java.lang.String trustPass)
trustStoreStream - Truststore content input streamtrustPass - Truststore passwordpublic void requireClientAuth(boolean clientAuth)
clientAuth -