edu.vt.middleware.ldap.ssl
Class DefaultSSLContextInitializer
java.lang.Object
edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer
edu.vt.middleware.ldap.ssl.DefaultSSLContextInitializer
- All Implemented Interfaces:
- SSLContextInitializer
public class DefaultSSLContextInitializer
- extends AbstractSSLContextInitializer
Provides a default implementation of SSLContextInitializer which
allows the setting of trust and key managers in order to create an SSL
context.
- Version:
- $Revision: 1330 $ $Date: 2010-05-23 18:10:53 -0400 (Sun, 23 May 2010) $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSSLContextInitializer
public DefaultSSLContextInitializer()
getTrustManagers
public TrustManager[] getTrustManagers()
throws GeneralSecurityException
- Returns the trust managers used when creating SSL contexts.
- Specified by:
getTrustManagers in interface SSLContextInitializer- Specified by:
getTrustManagers in class AbstractSSLContextInitializer
- Returns:
TrustManager[]
- Throws:
GeneralSecurityException - if an errors occurs while loading the
TrustManagers
setTrustManagers
public void setTrustManagers(TrustManager[] tm)
- Sets the trust managers.
- Parameters:
tm - TrustManager[]
getKeyManagers
public KeyManager[] getKeyManagers()
throws GeneralSecurityException
- Returns the key managers used when creating SSL contexts.
- Specified by:
getKeyManagers in interface SSLContextInitializer- Specified by:
getKeyManagers in class AbstractSSLContextInitializer
- Returns:
KeyManagers[]
- Throws:
GeneralSecurityException - if an errors occurs while loading the
KeyManagers
setKeyManagers
public void setKeyManagers(KeyManager[] km)
- Sets the key managers.
- Parameters:
km - KeyManager[]
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.