Package edu.vt.middleware.ldap.ssl
Interface SSLContextInitializer
-
- All Known Implementing Classes:
AbstractSSLContextInitializer,DefaultSSLContextInitializer,KeyStoreSSLContextInitializer,X509SSLContextInitializer
public interface SSLContextInitializerProvides 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.net.ssl.KeyManager[]getKeyManagers()Returns the key managers used when creating SSL contexts.javax.net.ssl.TrustManager[]getTrustManagers()Returns the trust managers used when creating SSL contexts.javax.net.ssl.SSLContextinitSSLContext(java.lang.String protocol)Creates an initialized SSLContext for the supplied protocol.
-
-
-
Method Detail
-
initSSLContext
javax.net.ssl.SSLContext initSSLContext(java.lang.String protocol) throws java.security.GeneralSecurityExceptionCreates an initialized SSLContext for the supplied protocol.- Parameters:
protocol- type to use for SSL- Returns:
SSLContext- Throws:
java.security.GeneralSecurityException- if the SSLContext cannot be created
-
getTrustManagers
javax.net.ssl.TrustManager[] getTrustManagers() throws java.security.GeneralSecurityExceptionReturns the trust managers used when creating SSL contexts.- Returns:
TrustManager[]- Throws:
java.security.GeneralSecurityException- if an errors occurs while loading the TrustManagers
-
getKeyManagers
javax.net.ssl.KeyManager[] getKeyManagers() throws java.security.GeneralSecurityExceptionReturns the key managers used when creating SSL contexts.- Returns:
KeyManagers[]- Throws:
java.security.GeneralSecurityException- if an errors occurs while loading the KeyManagers
-
-