edu.vt.middleware.ldap.ssl
Class SingletonTLSSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
edu.vt.middleware.ldap.ssl.AbstractTLSSocketFactory
edu.vt.middleware.ldap.ssl.TLSSocketFactory
edu.vt.middleware.ldap.ssl.SingletonTLSSocketFactory
public class SingletonTLSSocketFactory
- extends TLSSocketFactory
TLSSocketFactory implementation that uses a static SSLContextInitializer.
Useful for SSL configurations that can only retrieve the SSLSocketFactory
from getDefault().
- Version:
- $Revision: 1742 $ $Date: 2010-11-19 10:18:06 -0500 (Fri, 19 Nov 2010) $
- Author:
- Middleware Services
| Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractTLSSocketFactory |
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getEnabledCipherSuites, getEnabledProtocols, getFactory, getSupportedCipherSuites, initSSLSocket, setEnabledCipherSuites, setEnabledProtocols |
staticContextInitializer
protected static SSLContextInitializer staticContextInitializer
- SSLContextInitializer used for initializing SSL contexts.
SingletonTLSSocketFactory
public SingletonTLSSocketFactory()
setSSLContextInitializer
public void setSSLContextInitializer(SSLContextInitializer initializer)
- Sets the SSL context initializer.
- Overrides:
setSSLContextInitializer in class TLSSocketFactory
- Parameters:
initializer - to create SSL contexts with
initialize
public void initialize()
throws GeneralSecurityException
- Creates the underlying SSLContext using truststore and keystore attributes
and makes this factory ready for use. Must be called before factory can be
used.
- Overrides:
initialize in class TLSSocketFactory
- Throws:
GeneralSecurityException - if the SSLContext cannot be created
getDefault
public static SocketFactory getDefault()
- This returns the default SSL socket factory.
- Returns:
SocketFactory
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.