org.apache.blur.thirdparty.thrift_0_9_0.transport
Class TSSLTransportFactory.TSSLTransportParameters

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.transport.TSSLTransportFactory.TSSLTransportParameters
Enclosing class:
TSSLTransportFactory

public static class TSSLTransportFactory.TSSLTransportParameters
extends Object

A Class to hold all the SSL parameters


Constructor Summary
TSSLTransportFactory.TSSLTransportParameters()
           
TSSLTransportFactory.TSSLTransportParameters(String protocol, String[] cipherSuites)
          Create parameters specifying the protocol and cipher suites
TSSLTransportFactory.TSSLTransportParameters(String protocol, String[] cipherSuites, boolean clientAuth)
          Create parameters specifying the protocol, cipher suites and if client authentication is required
 
Method Summary
 void requireClientAuth(boolean clientAuth)
          Set if client authentication is required
 void setKeyStore(String keyStore, String keyPass)
          Set the keystore and password
 void setKeyStore(String keyStore, String keyPass, String keyManagerType, String keyStoreType)
          Set the keystore, password, certificate type and the store type
 void setTrustStore(String trustStore, String trustPass)
          Set the truststore and password
 void setTrustStore(String trustStore, String trustPass, String trustManagerType, String trustStoreType)
          Set the truststore, password, certificate type and the store type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSSLTransportFactory.TSSLTransportParameters

public TSSLTransportFactory.TSSLTransportParameters()

TSSLTransportFactory.TSSLTransportParameters

public TSSLTransportFactory.TSSLTransportParameters(String protocol,
                                                    String[] cipherSuites)
Create parameters specifying the protocol and cipher suites

Parameters:
protocol - The specific protocol (TLS/SSL) can be specified with versions
cipherSuites -

TSSLTransportFactory.TSSLTransportParameters

public TSSLTransportFactory.TSSLTransportParameters(String protocol,
                                                    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 versions
cipherSuites -
clientAuth -
Method Detail

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 disk
keyPass - Keystore password
keyManagerType - The default is X509
keyStoreType - The default is JKS

setKeyStore

public void setKeyStore(String keyStore,
                        String keyPass)
Set the keystore and password

Parameters:
keyStore - Location of the Keystore on disk
keyPass - 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 disk
trustPass - Truststore password
trustManagerType - The default is X509
trustStoreType - The default is JKS

setTrustStore

public void setTrustStore(String trustStore,
                          String trustPass)
Set the truststore and password

Parameters:
trustStore - Location of the Truststore on disk
trustPass - Truststore password

requireClientAuth

public void requireClientAuth(boolean clientAuth)
Set if client authentication is required

Parameters:
clientAuth -


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.