public abstract class OpenSslContext extends SslContext
| Modifier and Type | Field and Description |
|---|---|
protected long |
ctx
The OpenSSL SSL_CTX object
|
protected static int |
VERIFY_DEPTH |
| Modifier and Type | Method and Description |
|---|---|
ApplicationProtocolNegotiator |
applicationProtocolNegotiator()
Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
|
protected static X509Certificate[] |
certificates(byte[][] chain) |
protected static X509TrustManager |
chooseTrustManager(TrustManager[] managers) |
List<String> |
cipherSuites()
Returns the list of enabled cipher suites, in the order of preference.
|
long |
context()
Deprecated.
use
sslCtxPointer() |
protected void |
destroy() |
protected void |
finalize() |
boolean |
isClient()
Returns the
true if and only if this context is for client-side. |
SSLEngine |
newEngine(io.netty.buffer.ByteBufAllocator alloc)
Returns a new server-side
SSLEngine with the current configuration. |
SSLEngine |
newEngine(io.netty.buffer.ByteBufAllocator alloc,
String peerHost,
int peerPort)
Creates a new
SSLEngine using advisory peer information. |
long |
sessionCacheSize()
Returns the size of the cache used for storing SSL session objects.
|
abstract OpenSslSessionContext |
sessionContext()
Returns the
SSLSessionContext object held by this context. |
long |
sessionTimeout()
Returns the timeout for the cached SSL session objects, in seconds.
|
void |
setRejectRemoteInitiatedRenegotiation(boolean rejectRemoteInitiatedRenegotiation)
Specify if remote initiated renegotiation is supported or not.
|
void |
setTicketKeys(byte[] keys)
Deprecated.
|
long |
sslCtxPointer()
Returns the pointer to the
SSL_CTX object for this OpenSslContext. |
OpenSslSessionStats |
stats()
Deprecated.
use
#sessionContext#stats() |
buildTrustManagerFactory, defaultClientProvider, defaultServerProvider, generateKeySpec, isServer, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newClientContext, newHandler, newHandler, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, newServerContext, nextProtocolsprotected static final int VERIFY_DEPTH
protected volatile long ctx
public final List<String> cipherSuites()
SslContextcipherSuites in class SslContextpublic final long sessionCacheSize()
SslContextsessionCacheSize in class SslContextpublic final long sessionTimeout()
SslContextsessionTimeout in class SslContextpublic ApplicationProtocolNegotiator applicationProtocolNegotiator()
SslContextapplicationProtocolNegotiator in class SslContextpublic final boolean isClient()
SslContexttrue if and only if this context is for client-side.isClient in class SslContextpublic final SSLEngine newEngine(io.netty.buffer.ByteBufAllocator alloc, String peerHost, int peerPort)
SslContextSSLEngine using advisory peer information.newEngine in class SslContextpeerHost - the non-authoritative name of the hostpeerPort - the non-authoritative portSSLEnginepublic final SSLEngine newEngine(io.netty.buffer.ByteBufAllocator alloc)
SSLEngine with the current configuration.newEngine in class SslContextSSLEngine@Deprecated public final long context()
sslCtxPointer()SSL_CTX object for this OpenSslContext.
Be aware that it is freed as soon as the finalize() method is called.
At this point 0 will be returned.@Deprecated public final OpenSslSessionStats stats()
#sessionContext#stats()public void setRejectRemoteInitiatedRenegotiation(boolean rejectRemoteInitiatedRenegotiation)
SSLHandshakeException will be thrown during decoding.protected final void finalize()
throws Throwable
@Deprecated public final void setTicketKeys(byte[] keys)
OpenSslSessionContext.setTicketKeys(byte[])public abstract OpenSslSessionContext sessionContext()
SslContextSSLSessionContext object held by this context.sessionContext in class SslContextpublic final long sslCtxPointer()
SSL_CTX object for this OpenSslContext.
Be aware that it is freed as soon as the finalize() method is called.
At this point 0 will be returned.protected final void destroy()
protected static X509Certificate[] certificates(byte[][] chain)
protected static X509TrustManager chooseTrustManager(TrustManager[] managers)
Copyright © 2008–2016 The Netty Project. All rights reserved.