Package org.apache.thrift.transport
Class TSSLTransportFactory.TSSLTransportParameters
- java.lang.Object
-
- org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters
-
- Enclosing class:
- TSSLTransportFactory
public static class TSSLTransportFactory.TSSLTransportParameters extends java.lang.ObjectA Class to hold all the SSL parameters
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]cipherSuitesprotected booleanclientAuthprotected booleanisKeyStoreSetprotected booleanisTrustStoreSetprotected java.lang.StringkeyManagerTypeprotected java.lang.StringkeyPassprotected java.lang.StringkeyStoreprotected java.io.InputStreamkeyStoreStreamprotected java.lang.StringkeyStoreTypeprotected java.lang.Stringprotocolprotected java.lang.StringtrustManagerTypeprotected java.lang.StringtrustPassprotected java.lang.StringtrustStoreprotected java.io.InputStreamtrustStoreStreamprotected java.lang.StringtrustStoreType
-
Constructor Summary
Constructors Constructor Description TSSLTransportParameters()TSSLTransportParameters(java.lang.String protocol, java.lang.String[] cipherSuites)Create parameters specifying the protocol and cipher suitesTSSLTransportParameters(java.lang.String protocol, java.lang.String[] cipherSuites, boolean clientAuth)Create parameters specifying the protocol, cipher suites and if client authentication is required
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrequireClientAuth(boolean clientAuth)Set if client authentication is requiredvoidsetKeyStore(java.io.InputStream keyStoreStream, java.lang.String keyPass)Set the keystore and passwordvoidsetKeyStore(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 typevoidsetKeyStore(java.lang.String keyStore, java.lang.String keyPass)Set the keystore and passwordvoidsetKeyStore(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 typevoidsetTrustStore(java.io.InputStream trustStoreStream, java.lang.String trustPass)Set the truststore and passwordvoidsetTrustStore(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 typevoidsetTrustStore(java.lang.String trustStore, java.lang.String trustPass)Set the truststore and passwordvoidsetTrustStore(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
-
-
-
Field Detail
-
protocol
protected java.lang.String protocol
-
keyStore
protected java.lang.String keyStore
-
keyStoreStream
protected java.io.InputStream keyStoreStream
-
keyPass
protected java.lang.String keyPass
-
keyManagerType
protected java.lang.String keyManagerType
-
keyStoreType
protected java.lang.String keyStoreType
-
trustStore
protected java.lang.String trustStore
-
trustStoreStream
protected java.io.InputStream trustStoreStream
-
trustPass
protected java.lang.String trustPass
-
trustManagerType
protected java.lang.String trustManagerType
-
trustStoreType
protected java.lang.String trustStoreType
-
cipherSuites
protected java.lang.String[] cipherSuites
-
clientAuth
protected boolean clientAuth
-
isKeyStoreSet
protected boolean isKeyStoreSet
-
isTrustStoreSet
protected boolean isTrustStoreSet
-
-
Constructor Detail
-
TSSLTransportParameters
public TSSLTransportParameters()
-
TSSLTransportParameters
public TSSLTransportParameters(java.lang.String protocol, java.lang.String[] cipherSuites)Create parameters specifying the protocol and cipher suites- Parameters:
protocol- The specific protocol (TLS/SSL) can be specified with versionscipherSuites-
-
TSSLTransportParameters
public TSSLTransportParameters(java.lang.String protocol, java.lang.String[] cipherSuites, boolean clientAuth)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 Detail
-
setKeyStore
public 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- Parameters:
keyStore- Location of the Keystore on diskkeyPass- Keystore passwordkeyManagerType- The default is X509keyStoreType- The default is JKS
-
setKeyStore
public 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- Parameters:
keyStoreStream- Keystore content input streamkeyPass- Keystore passwordkeyManagerType- The default is X509keyStoreType- The default is JKS
-
setKeyStore
public void setKeyStore(java.lang.String keyStore, java.lang.String keyPass)Set the keystore and password- Parameters:
keyStore- Location of the Keystore on diskkeyPass- Keystore password
-
setKeyStore
public void setKeyStore(java.io.InputStream keyStoreStream, java.lang.String keyPass)Set the keystore and password- Parameters:
keyStoreStream- Keystore content input streamkeyPass- Keystore password
-
setTrustStore
public 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- Parameters:
trustStore- Location of the Truststore on disktrustPass- Truststore passwordtrustManagerType- The default is X509trustStoreType- The default is JKS
-
setTrustStore
public 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- Parameters:
trustStoreStream- Truststore content input streamtrustPass- Truststore passwordtrustManagerType- The default is X509trustStoreType- The default is JKS
-
setTrustStore
public void setTrustStore(java.lang.String trustStore, java.lang.String trustPass)Set the truststore and password- Parameters:
trustStore- Location of the Truststore on disktrustPass- Truststore password
-
setTrustStore
public void setTrustStore(java.io.InputStream trustStoreStream, java.lang.String trustPass)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-
-
-