|
||||||||||
| 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 |
|---|
hostnameVerifierConfig, logger, trustManagers |
| Constructor Summary | |
|---|---|
KeyStoreSSLContextInitializer()
|
|
| Method Summary | |
|---|---|
protected TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer. |
String[] |
getAuthenticationAliases()
Returns the aliases of the entries to use in the authentication keystore. |
KeyStore |
getAuthenticationKeystore()
Returns the keystore to use for creating the key managers. |
char[] |
getAuthenticationPassword()
Returns the password used for accessing the authentication keystore. |
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts. |
String[] |
getTrustAliases()
Returns the aliases of the entries to use in the trust keystore. |
KeyStore |
getTrustKeystore()
Returns the keystore to use for creating the trust managers. |
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, getHostnameVerifierConfig, getTrustManagers, initSSLContext, setHostnameVerifierConfig, 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 KeyStore getTrustKeystore()
public void setTrustKeystore(KeyStore keystore)
keystore - to setpublic String[] getTrustAliases()
public void setTrustAliases(String... aliases)
aliases - to usepublic KeyStore getAuthenticationKeystore()
public void setAuthenticationKeystore(KeyStore keystore)
keystore - to setpublic String[] getAuthenticationAliases()
public void setAuthenticationAliases(String... aliases)
aliases - to usepublic char[] getAuthenticationPassword()
public 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 | |||||||||