edu.vt.middleware.ldap.ssl
Class AbstractSSLContextInitializer

java.lang.Object
  extended by edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer
All Implemented Interfaces:
SSLContextInitializer
Direct Known Subclasses:
DefaultSSLContextInitializer, KeyStoreSSLContextInitializer, X509SSLContextInitializer

public abstract class AbstractSSLContextInitializer
extends Object
implements SSLContextInitializer

Provides common implementation for SSLContextInitializer.

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

Field Summary
protected  org.apache.commons.logging.Log logger
          Log for this class.
 
Constructor Summary
AbstractSSLContextInitializer()
           
 
Method Summary
abstract  KeyManager[] getKeyManagers()
          Returns the key managers used when creating SSL contexts.
abstract  TrustManager[] getTrustManagers()
          Returns the trust managers used when creating SSL contexts.
 SSLContext initSSLContext(String protocol)
          Creates an initialized SSLContext for the supplied protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Log for this class.

Constructor Detail

AbstractSSLContextInitializer

public AbstractSSLContextInitializer()
Method Detail

initSSLContext

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

Specified by:
initSSLContext in interface SSLContextInitializer
Parameters:
protocol - type to use for SSL
Returns:
SSLContext
Throws:
GeneralSecurityException - if the SSLContext cannot be created

getTrustManagers

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

Specified by:
getTrustManagers in interface SSLContextInitializer
Returns:
TrustManager[]
Throws:
GeneralSecurityException - if an errors occurs while loading the TrustManagers

getKeyManagers

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

Specified by:
getKeyManagers in interface SSLContextInitializer
Returns:
KeyManagers[]
Throws:
GeneralSecurityException - if an errors occurs while loading the KeyManagers


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