|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
edu.vt.middleware.ldap.ssl.AbstractTLSSocketFactory
edu.vt.middleware.ldap.ssl.TLSSocketFactory
public class TLSSocketFactory
TLSSocketFactory is an extension of SSLSocketFactory. Note that
initialize() must be called prior to using this socket factory. This
means that this class cannot be passed to implementations that expect the
socket factory to function immediately after construction.
| Field Summary | |
|---|---|
protected SSLContextInitializer |
contextInitializer
SSLContextInitializer used for initializing SSL contexts. |
| Fields inherited from class edu.vt.middleware.ldap.ssl.AbstractTLSSocketFactory |
|---|
cipherSuites, DEFAULT_PROTOCOL, factory, protocols |
| Constructor Summary | |
|---|---|
TLSSocketFactory()
|
|
| Method Summary | |
|---|---|
static SocketFactory |
getDefault()
This returns the default SSL socket factory. |
SSLContextInitializer |
getSSLContextInitializer()
Returns the SSL context initializer. |
void |
initialize()
Creates the underlying SSLContext using truststore and keystore attributes and makes this factory ready for use. |
void |
setSSLContextInitializer(SSLContextInitializer initializer)
Sets the SSL context initializer. |
String |
toString()
Provides a descriptive string representation of this instance. |
| Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractTLSSocketFactory |
|---|
createSocket, createSocket, createSocket, createSocket, createSocket, createSocket, getDefaultCipherSuites, getEnabledCipherSuites, getEnabledProtocols, getFactory, getSupportedCipherSuites, initSSLSocket, setEnabledCipherSuites, setEnabledProtocols |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SSLContextInitializer contextInitializer
| Constructor Detail |
|---|
public TLSSocketFactory()
| Method Detail |
|---|
public SSLContextInitializer getSSLContextInitializer()
SSLContextInitializerpublic void setSSLContextInitializer(SSLContextInitializer initializer)
initializer - to create SSL contexts with
public void initialize()
throws GeneralSecurityException
initialize in class AbstractTLSSocketFactoryGeneralSecurityException - if the SSLContext cannot be createdpublic static SocketFactory getDefault()
SocketFactorypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||