|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer
edu.vt.middleware.ldap.ssl.KeyStoreSSLContextInitializer
public class KeyStoreSSLContextInitializer
Provides a SSLContextInitializer which can use java KeyStores to
create key and trust managers.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer |
|---|
logger |
| Constructor Summary | |
|---|---|
KeyStoreSSLContextInitializer()
|
|
| Method Summary | |
|---|---|
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts. |
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts. |
void |
setAuthenticationKeystore(KeyStore ks)
Sets the keystore to use for creating the key managers. |
void |
setAuthenticationPassword(char[] password)
Sets the password used for accessing the authentication keystore. |
void |
setTrustKeystore(KeyStore ks)
Sets the keystore to use for creating the trust managers. |
| Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer |
|---|
initSSLContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreSSLContextInitializer()
| Method Detail |
|---|
public void setTrustKeystore(KeyStore ks)
ks - KeyStorepublic void setAuthenticationKeystore(KeyStore ks)
ks - KeyStorepublic void setAuthenticationPassword(char[] password)
password - char[]
public TrustManager[] getTrustManagers()
throws GeneralSecurityException
getTrustManagers in interface SSLContextInitializergetTrustManagers in class AbstractSSLContextInitializerTrustManager[]
GeneralSecurityException - if an errors occurs while loading the
TrustManagers
public KeyManager[] getKeyManagers()
throws GeneralSecurityException
getKeyManagers in interface SSLContextInitializergetKeyManagers in class AbstractSSLContextInitializerKeyManagers[]
GeneralSecurityException - if an errors occurs while loading the
KeyManagers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||