public class OpenSSLContextImpl extends SSLContextSpi
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLContextImpl.SSLv3 |
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()
Creates an
SSLEngine instance from this context. |
SSLEngine |
engineCreateSSLEngine(String host,
int port)
Creates an
SSLEngine instance from this context with the
specified hostname and port. |
ClientSessionContext |
engineGetClientSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions
that can be used for the client side of the SSL handshake.
|
ServerSessionContext |
engineGetServerSessionContext()
Returns the SSL session context that encapsulates the set of SSL sessions
that can be used for the server side of the SSL handshake.
|
SSLServerSocketFactory |
engineGetServerSocketFactory()
Returns a server socket factory for this instance.
|
SSLSocketFactory |
engineGetSocketFactory()
Returns a socket factory for this instance.
|
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
dummy - is null, used to distinguish this case from the public
OpenSSLContextImpl() constructor.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()
SSLContextSpiengineGetSocketFactory in class SSLContextSpipublic SSLServerSocketFactory engineGetServerSocketFactory()
SSLContextSpiengineGetServerSocketFactory in class SSLContextSpipublic SSLEngine engineCreateSSLEngine(String host, int port)
SSLContextSpiSSLEngine instance from this context with the
specified hostname and port.engineCreateSSLEngine in class SSLContextSpihost - the name of the hostport - the portSSLEngine instance from this context.public SSLEngine engineCreateSSLEngine()
SSLContextSpiSSLEngine instance from this context.engineCreateSSLEngine in class SSLContextSpiSSLEngine instance from this context.public ServerSessionContext engineGetServerSessionContext()
SSLContextSpiengineGetServerSessionContext in class SSLContextSpinull
if the underlying provider does not provide an implementation of
the SSLSessionContext interface.public ClientSessionContext engineGetClientSessionContext()
SSLContextSpiengineGetClientSessionContext in class SSLContextSpinull
if the underlying provider does not provide an implementation of
the SSLSessionContext interface.