|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ssl.AbstractSSLContextInitializer
org.ldaptive.ssl.DefaultSSLContextInitializer
public class DefaultSSLContextInitializer
Provides a default implementation of SSL context initializer which allows the setting of trust and key managers in order to create an SSL context.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.ssl.AbstractSSLContextInitializer |
|---|
logger, trustManagers |
| Constructor Summary | |
|---|---|
DefaultSSLContextInitializer()
Creates a new default ssl context initializer. |
|
DefaultSSLContextInitializer(boolean defaultTrustManagers)
Creates a new default ssl context initializer. |
|
| Method Summary | |
|---|---|
protected TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer. |
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts. |
void |
setKeyManagers(KeyManager... managers)
Sets the key managers. |
String |
toString()
|
| Methods inherited from class org.ldaptive.ssl.AbstractSSLContextInitializer |
|---|
aggregateTrustManagers, getTrustManagers, initSSLContext, setTrustManagers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSSLContextInitializer()
public DefaultSSLContextInitializer(boolean defaultTrustManagers)
defaultTrustManagers - whether default trust managers should be
created| Method Detail |
|---|
protected TrustManager[] createTrustManagers()
throws GeneralSecurityException
createTrustManagers in class AbstractSSLContextInitializerGeneralSecurityException - if an errors occurs while loading the
TrustManagers
public KeyManager[] getKeyManagers()
throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the
KeyManagerspublic void setKeyManagers(KeyManager... managers)
managers - key managerspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||