Class OpenSslContext

java.lang.Object
All Implemented Interfaces:
ReferenceCounted
Direct Known Subclasses:
OpenSslClientContext, OpenSslServerContext

public abstract class OpenSslContext extends ReferenceCountedOpenSslContext
This class will use a finalizer to ensure native resources are automatically cleaned up. To avoid finalizers and manually release the native memory see ReferenceCountedOpenSslContext.
  • Constructor Details

    • OpenSslContext

      OpenSslContext(java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apnCfg, int mode, java.security.cert.Certificate[] keyCertChain, ClientAuth clientAuth, java.lang.String[] protocols, boolean startTls, java.lang.String endpointIdentificationAlgorithm, boolean enableOcsp, java.util.List<javax.net.ssl.SNIServerName> serverNames, ResumptionController resumptionController, java.util.Map.Entry<SslContextOption<?>, java.lang.Object>[] options, java.util.List<OpenSslCredential> credentials) throws javax.net.ssl.SSLException
      Throws:
      javax.net.ssl.SSLException
    • OpenSslContext

      OpenSslContext(java.lang.Iterable<java.lang.String> ciphers, CipherSuiteFilter cipherFilter, OpenSslApplicationProtocolNegotiator apn, int mode, java.security.cert.Certificate[] keyCertChain, ClientAuth clientAuth, java.lang.String[] protocols, boolean startTls, boolean enableOcsp, java.util.List<javax.net.ssl.SNIServerName> serverNames, ResumptionController resumptionController, java.util.Map.Entry<SslContextOption<?>, java.lang.Object>[] options, java.util.List<OpenSslCredential> credentials) throws javax.net.ssl.SSLException
      Throws:
      javax.net.ssl.SSLException
  • Method Details

    • newEngine0

      final javax.net.ssl.SSLEngine newEngine0(ByteBufAllocator alloc, java.lang.String peerHost, int peerPort, boolean jdkCompatibilityMode)
      Overrides:
      newEngine0 in class ReferenceCountedOpenSslContext
    • finalize

      protected final void finalize() throws java.lang.Throwable
      Overrides:
      finalize in class java.lang.Object
      Throws:
      java.lang.Throwable