Methods Summary |
---|
public javax.net.ssl.SSLEngine | engineCreateSSLEngine(java.lang.String host, int port)
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initiallized.");
}
return new SSLEngineImpl(host, port,
(SSLParameters) sslParameters.clone());
|
public javax.net.ssl.SSLEngine | engineCreateSSLEngine()
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initiallized.");
}
return new SSLEngineImpl((SSLParameters) sslParameters.clone());
|
public ClientSessionContext | engineGetClientSessionContext()
return clientSessionContext;
|
public ServerSessionContext | engineGetServerSessionContext()
return serverSessionContext;
|
public javax.net.ssl.SSLServerSocketFactory | engineGetServerSocketFactory()
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initiallized.");
}
return new OpenSSLServerSocketFactoryImpl(sslParameters);
|
public javax.net.ssl.SSLSocketFactory | engineGetSocketFactory()
if (sslParameters == null) {
throw new IllegalStateException("SSLContext is not initiallized.");
}
return new OpenSSLSocketFactoryImpl(sslParameters);
|
public void | engineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr)
engineInit(kms, tms, sr, null, null);
|
public void | engineInit(javax.net.ssl.KeyManager[] kms, javax.net.ssl.TrustManager[] tms, java.security.SecureRandom sr, SSLClientSessionCache clientCache, SSLServerSessionCache serverCache)Initializes this {@code SSLContext} instance. All of the arguments are
optional, and the security providers will be searched for the required
implementations of the needed algorithms.
sslParameters = new SSLParameters(kms, tms, sr,
clientCache, serverCache);
clientSessionContext = sslParameters.getClientSessionContext();
serverSessionContext = sslParameters.getServerSessionContext();
|