|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SSLContextInitializer
Provides an interface for the initialization of new SSL contexts.
| Method Summary | |
|---|---|
HostnameVerifierConfig |
getHostnameVerifierConfig()
Returns the hostname verifier config used when created SSL contexts. |
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts. |
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts. |
SSLContext |
initSSLContext(String protocol)
Creates an initialized SSLContext for the supplied protocol. |
void |
setHostnameVerifierConfig(HostnameVerifierConfig config)
Sets the hostname verifier config. |
void |
setTrustManagers(TrustManager... managers)
Sets the trust managers. |
| Method Detail |
|---|
SSLContext initSSLContext(String protocol)
throws GeneralSecurityException
protocol - type to use for SSL
GeneralSecurityException - if the SSLContext cannot be created
TrustManager[] getTrustManagers()
throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the
TrustManagersvoid setTrustManagers(TrustManager... managers)
managers - trust managersHostnameVerifierConfig getHostnameVerifierConfig()
void setHostnameVerifierConfig(HostnameVerifierConfig config)
config - hostname verifier config
KeyManager[] getKeyManagers()
throws GeneralSecurityException
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 | |||||||||