com.netflix.niws.cert
Class AbstractSslContextFactory

java.lang.Object
  extended by com.netflix.niws.cert.AbstractSslContextFactory
Direct Known Subclasses:
URLSslContextFactory

public abstract class AbstractSslContextFactory
extends java.lang.Object

Abstract class to represent what we logically associate with the ssl context on the client side, namely, the keystore and truststore.


Field Summary
static java.lang.String SOCKET_ALGORITHM
          The secure socket algorithm that is to be used.
 
Constructor Summary
protected AbstractSslContextFactory(java.security.KeyStore trustStore, java.lang.String trustStorePassword, java.security.KeyStore keyStore, java.lang.String keyStorePassword)
           
 
Method Summary
 java.security.KeyStore getKeyStore()
           
 int getKeyStorePasswordLength()
           
 javax.net.ssl.SSLContext getSSLContext()
           
 java.security.KeyStore getTrustStore()
           
 int getTrustStorePasswordLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOCKET_ALGORITHM

public static final java.lang.String SOCKET_ALGORITHM
The secure socket algorithm that is to be used.

See Also:
Constant Field Values
Constructor Detail

AbstractSslContextFactory

protected AbstractSslContextFactory(java.security.KeyStore trustStore,
                                    java.lang.String trustStorePassword,
                                    java.security.KeyStore keyStore,
                                    java.lang.String keyStorePassword)
Method Detail

getKeyStore

public java.security.KeyStore getKeyStore()

getTrustStore

public java.security.KeyStore getTrustStore()

getKeyStorePasswordLength

public int getKeyStorePasswordLength()

getTrustStorePasswordLength

public int getTrustStorePasswordLength()

getSSLContext

public javax.net.ssl.SSLContext getSSLContext()
                                       throws ClientSslSocketFactoryException
Throws:
ClientSslSocketFactoryException