|
||||||||||
| 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.KeyStoreSSLContextInitializer
public class KeyStoreSSLContextInitializer
Provides an SSL context initializer which can use java KeyStores to create key and trust managers.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.ssl.AbstractSSLContextInitializer |
|---|
logger, trustManagers |
| Constructor Summary | |
|---|---|
KeyStoreSSLContextInitializer()
|
|
| 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 |
setAuthenticationAliases(String... aliases)
Sets the aliases of the entries to use in the authentication keystore. |
void |
setAuthenticationKeystore(KeyStore keystore)
Sets the keystore to use for creating the key managers. |
void |
setAuthenticationPassword(char[] password)
Sets the password used for accessing the authentication keystore. |
void |
setTrustAliases(String... aliases)
Sets the aliases of the entries to use in the trust keystore. |
void |
setTrustKeystore(KeyStore keystore)
Sets the keystore to use for creating the trust 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 KeyStoreSSLContextInitializer()
| Method Detail |
|---|
public void setTrustKeystore(KeyStore keystore)
keystore - to setpublic void setTrustAliases(String... aliases)
aliases - to usepublic void setAuthenticationKeystore(KeyStore keystore)
keystore - to setpublic void setAuthenticationAliases(String... aliases)
aliases - to usepublic void setAuthenticationPassword(char[] password)
password - to use for authentication
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 String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||