edu.vt.middleware.ldap.ssl
public class DefaultSSLContextInitializer extends AbstractSSLContextInitializer
SSLContextInitializer
which
allows the setting of trust and key managers in order to create an SSL
context.logger
Constructor and Description |
---|
DefaultSSLContextInitializer() |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts.
|
javax.net.ssl.TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts.
|
void |
setKeyManagers(javax.net.ssl.KeyManager[] km)
Sets the key managers.
|
void |
setTrustManagers(javax.net.ssl.TrustManager[] tm)
Sets the trust managers.
|
initSSLContext
public javax.net.ssl.TrustManager[] getTrustManagers() throws java.security.GeneralSecurityException
getTrustManagers
in interface SSLContextInitializer
getTrustManagers
in class AbstractSSLContextInitializer
TrustManager[]
java.security.GeneralSecurityException
- if an errors occurs while loading the
TrustManagerspublic void setTrustManagers(javax.net.ssl.TrustManager[] tm)
tm
- TrustManager[]
public javax.net.ssl.KeyManager[] getKeyManagers() throws java.security.GeneralSecurityException
getKeyManagers
in interface SSLContextInitializer
getKeyManagers
in class AbstractSSLContextInitializer
KeyManagers[]
java.security.GeneralSecurityException
- if an errors occurs while loading the
KeyManagerspublic void setKeyManagers(javax.net.ssl.KeyManager[] km)
km
- KeyManager[]
Copyright © 2014. All Rights Reserved.