edu.vt.middleware.ldap.ssl
Interface SSLContextInitializer

All Known Implementing Classes:
AbstractSSLContextInitializer, DefaultSSLContextInitializer, KeyStoreSSLContextInitializer, X509SSLContextInitializer

public interface SSLContextInitializer

Provides an interface for the initialization of new SSL contexts.

Version:
$Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
Author:
Middleware Services

Method Summary
 KeyManager[] getKeyManagers()
          Returns the key managers used when creating SSL contexts.
 TrustManager[] getTrustManagers()
          Returns the trust managers used when creating SSL contexts.
 SSLContext initSSLContext(String protocol)
          Creates an initialized SSLContext for the supplied protocol.
 

Method Detail

initSSLContext

SSLContext initSSLContext(String protocol)
                          throws GeneralSecurityException
Creates an initialized SSLContext for the supplied protocol.

Parameters:
protocol - type to use for SSL
Returns:
SSLContext
Throws:
GeneralSecurityException - if the SSLContext cannot be created

getTrustManagers

TrustManager[] getTrustManagers()
                                throws GeneralSecurityException
Returns the trust managers used when creating SSL contexts.

Returns:
TrustManager[]
Throws:
GeneralSecurityException - if an errors occurs while loading the TrustManagers

getKeyManagers

KeyManager[] getKeyManagers()
                            throws GeneralSecurityException
Returns the key managers used when creating SSL contexts.

Returns:
KeyManagers[]
Throws:
GeneralSecurityException - if an errors occurs while loading the KeyManagers


Copyright © 2003-2010 Virginia Tech. All Rights Reserved.