com.netflix.niws.cert
Class AbstractSslContextFactory
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOCKET_ALGORITHM
public static final java.lang.String SOCKET_ALGORITHM
- The secure socket algorithm that is to be used.
- See Also:
- Constant Field Values
AbstractSslContextFactory
protected AbstractSslContextFactory(java.security.KeyStore trustStore,
java.lang.String trustStorePassword,
java.security.KeyStore keyStore,
java.lang.String keyStorePassword)
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