public class OpenSSLContextImpl extends SSLContextSpi
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLContextImpl.TLSv1 |
static class |
OpenSSLContextImpl.TLSv11 |
static class |
OpenSSLContextImpl.TLSv12 |
| Modifier and Type | Field and Description |
|---|---|
protected SSLParametersImpl |
sslParameters |
| Modifier | Constructor and Description |
|---|---|
protected |
OpenSSLContextImpl()
Constuctor for the DefaultSSLContextImpl.
|
protected |
OpenSSLContextImpl(String[] algorithms) |
| Modifier and Type | Method and Description |
|---|---|
SSLEngine |
engineCreateSSLEngine() |
SSLEngine |
engineCreateSSLEngine(String host,
int port) |
ClientSessionContext |
engineGetClientSessionContext() |
ServerSessionContext |
engineGetServerSessionContext() |
SSLServerSocketFactory |
engineGetServerSocketFactory() |
SSLSocketFactory |
engineGetSocketFactory() |
void |
engineInit(KeyManager[] kms,
TrustManager[] tms,
SecureRandom sr)
Initializes this
SSLContext instance. |
static OpenSSLContextImpl |
getPreferred()
Allows outside callers to get the preferred SSLContext.
|
engineGetDefaultSSLParameters, engineGetSupportedSSLParametersprotected SSLParametersImpl sslParameters
protected OpenSSLContextImpl(String[] algorithms)
protected OpenSSLContextImpl()
throws GeneralSecurityException,
IOException
GeneralSecurityExceptionIOExceptionpublic static OpenSSLContextImpl getPreferred()
public void engineInit(KeyManager[] kms, TrustManager[] tms, SecureRandom sr) throws KeyManagementException
SSLContext instance. All of the arguments are
optional, and the security providers will be searched for the required
implementations of the needed algorithms.engineInit in class SSLContextSpikms - the key sources or nulltms - the trust decision sources or nullsr - the randomness source or nullKeyManagementException - if initializing this instance failspublic SSLSocketFactory engineGetSocketFactory()
engineGetSocketFactory in class SSLContextSpipublic SSLServerSocketFactory engineGetServerSocketFactory()
engineGetServerSocketFactory in class SSLContextSpipublic SSLEngine engineCreateSSLEngine(String host, int port)
engineCreateSSLEngine in class SSLContextSpipublic SSLEngine engineCreateSSLEngine()
engineCreateSSLEngine in class SSLContextSpipublic ServerSessionContext engineGetServerSessionContext()
engineGetServerSessionContext in class SSLContextSpipublic ClientSessionContext engineGetClientSessionContext()
engineGetClientSessionContext in class SSLContextSpi