Package org.apache.thrift.transport
Class TSSLTransportFactory.TSSLTransportParameters
java.lang.Object
org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters
- Enclosing class:
- TSSLTransportFactory
A Class to hold all the SSL parameters
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected boolean
protected boolean
protected boolean
protected String
protected String
protected String
protected InputStream
protected String
protected String
protected String
protected String
protected String
protected InputStream
protected String
-
Constructor Summary
ConstructorDescriptionTSSLTransportParameters
(String protocol, String[] cipherSuites) Create parameters specifying the protocol and cipher suitesTSSLTransportParameters
(String protocol, String[] cipherSuites, boolean clientAuth) Create parameters specifying the protocol, cipher suites and if client authentication is required -
Method Summary
Modifier and TypeMethodDescriptionvoid
requireClientAuth
(boolean clientAuth) Set if client authentication is requiredvoid
setKeyStore
(InputStream keyStoreStream, String keyPass) Set the keystore and passwordvoid
setKeyStore
(InputStream keyStoreStream, String keyPass, String keyManagerType, String keyStoreType) Set the keystore, password, certificate type and the store typevoid
setKeyStore
(String keyStore, String keyPass) Set the keystore and passwordvoid
setKeyStore
(String keyStore, String keyPass, String keyManagerType, String keyStoreType) Set the keystore, password, certificate type and the store typevoid
setTrustStore
(InputStream trustStoreStream, String trustPass) Set the truststore and passwordvoid
setTrustStore
(InputStream trustStoreStream, String trustPass, String trustManagerType, String trustStoreType) Set the truststore, password, certificate type and the store typevoid
setTrustStore
(String trustStore, String trustPass) Set the truststore and passwordvoid
setTrustStore
(String trustStore, String trustPass, String trustManagerType, String trustStoreType) Set the truststore, password, certificate type and the store type
-
Field Details
-
protocol
-
keyStore
-
keyStoreStream
-
keyPass
-
keyManagerType
-
keyStoreType
-
trustStore
-
trustStoreStream
-
trustPass
-
trustManagerType
-
trustStoreType
-
cipherSuites
-
clientAuth
protected boolean clientAuth -
isKeyStoreSet
protected boolean isKeyStoreSet -
isTrustStoreSet
protected boolean isTrustStoreSet
-
-
Constructor Details
-
TSSLTransportParameters
public TSSLTransportParameters() -
TSSLTransportParameters
Create parameters specifying the protocol and cipher suites- Parameters:
protocol
- The specific protocol (TLS/SSL) can be specified with versionscipherSuites
-
-
TSSLTransportParameters
Create parameters specifying the protocol, cipher suites and if client authentication is required- Parameters:
protocol
- The specific protocol (TLS/SSL) can be specified with versionscipherSuites
-clientAuth
-
-
-
Method Details
-
setKeyStore
public void setKeyStore(String keyStore, String keyPass, String keyManagerType, String keyStoreType) Set the keystore, password, certificate type and the store type- Parameters:
keyStore
- Location of the Keystore on diskkeyPass
- Keystore passwordkeyManagerType
- The default is X509keyStoreType
- The default is JKS
-
setKeyStore
public void setKeyStore(InputStream keyStoreStream, String keyPass, String keyManagerType, String keyStoreType) Set the keystore, password, certificate type and the store type- Parameters:
keyStoreStream
- Keystore content input streamkeyPass
- Keystore passwordkeyManagerType
- The default is X509keyStoreType
- The default is JKS
-
setKeyStore
Set the keystore and password- Parameters:
keyStore
- Location of the Keystore on diskkeyPass
- Keystore password
-
setKeyStore
Set the keystore and password- Parameters:
keyStoreStream
- Keystore content input streamkeyPass
- Keystore password
-
setTrustStore
public void setTrustStore(String trustStore, String trustPass, String trustManagerType, String trustStoreType) Set the truststore, password, certificate type and the store type- Parameters:
trustStore
- Location of the Truststore on disktrustPass
- Truststore passwordtrustManagerType
- The default is X509trustStoreType
- The default is JKS
-
setTrustStore
public void setTrustStore(InputStream trustStoreStream, String trustPass, String trustManagerType, String trustStoreType) Set the truststore, password, certificate type and the store type- Parameters:
trustStoreStream
- Truststore content input streamtrustPass
- Truststore passwordtrustManagerType
- The default is X509trustStoreType
- The default is JKS
-
setTrustStore
Set the truststore and password- Parameters:
trustStore
- Location of the Truststore on disktrustPass
- Truststore password
-
setTrustStore
Set the truststore and password- Parameters:
trustStoreStream
- Truststore content input streamtrustPass
- Truststore password
-
requireClientAuth
public void requireClientAuth(boolean clientAuth) Set if client authentication is required- Parameters:
clientAuth
-
-