org.ldaptive.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: 3237 $ $Date: 2017-08-28 16:06:58 -0400 (Mon, 28 Aug 2017) $
Author:
Middleware Services

Method Summary
 HostnameVerifierConfig getHostnameVerifierConfig()
          Returns the hostname verifier config used when created SSL contexts.
 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.
 void setHostnameVerifierConfig(HostnameVerifierConfig config)
          Sets the hostname verifier config.
 void setTrustManagers(TrustManager... managers)
          Sets the trust managers.
 

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:
SSL context
Throws:
GeneralSecurityException - if the SSLContext cannot be created

getTrustManagers

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

Returns:
trust managers
Throws:
GeneralSecurityException - if an errors occurs while loading the TrustManagers

setTrustManagers

void setTrustManagers(TrustManager... managers)
Sets the trust managers. May be in isolation or in conjunction with other trust material.

Parameters:
managers - trust managers

getHostnameVerifierConfig

HostnameVerifierConfig getHostnameVerifierConfig()
Returns the hostname verifier config used when created SSL contexts.

Returns:
hostname verifier config

setHostnameVerifierConfig

void setHostnameVerifierConfig(HostnameVerifierConfig config)
Sets the hostname verifier config.

Parameters:
config - hostname verifier config

getKeyManagers

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

Returns:
key managers
Throws:
GeneralSecurityException - if an errors occurs while loading the KeyManagers


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