Sun Adapter for LDAP API

com.stc.connector.ldapadapter.ldap
Interface SSLContextJDKPlatform

All Known Implementing Classes:
SSLContextJDK13, SSLContextJDK14

public interface SSLContextJDKPlatform

Interface for JDK specific SSLContext wrapper.

Version:
$Revision: 1.2 $
Author:

Method Summary
 javax.net.ssl.SSLSocketFactory getSocketFactory()
          Retrieves the SSLSocketFactory from the established underlying SSLContext.
 void init(java.lang.String sslProtocol, java.lang.String trustStoreType, java.lang.String trustStore, java.lang.String trustStorePassword, java.lang.String keyStoreType, java.lang.String keyStore, java.lang.String keyStorePassword, java.lang.String x509Algorithm)
          Initialize the underlying SSLContext.
 

Method Detail

init

void init(java.lang.String sslProtocol,
          java.lang.String trustStoreType,
          java.lang.String trustStore,
          java.lang.String trustStorePassword,
          java.lang.String keyStoreType,
          java.lang.String keyStore,
          java.lang.String keyStorePassword,
          java.lang.String x509Algorithm)
          throws java.io.IOException
Initialize the underlying SSLContext.

Parameters:
sslProtocol - The SSL Protocol to use. Valid are SSL, SSLv2, SSLv3, TLS, TLSv1
trustStoreType - The truststore type (i.e., JKS).
trustStore - The truststore location.
trustStorePassword - The truststore password.
keyStoreType - The keystore type (i.e., JKS).
keyStore - The keystore location.
keyStorePassword - The keystore password.
x509Algorithm - The X509 algorithm name to use for the trust and key manager factories.
Throws:
java.io.IOException - upon error.

getSocketFactory

javax.net.ssl.SSLSocketFactory getSocketFactory()
                                                throws java.io.IOException
Retrieves the SSLSocketFactory from the established underlying SSLContext.

Returns:
An instance of javax.net.SSLSocketFactory.
Throws:
java.io.IOException - upon error.

Sun Adapter for LDAP API