Class ReferenceCountedOpenSslContext

    • Field Detail

      • ctx

        protected long ctx
        The OpenSSL SSL_CTX object. ctxLock must be hold while using ctx!
    • Method Detail

      • cipherSuites

        public final List<String> cipherSuites()
        Description copied from class: SslContext
        Returns the list of enabled cipher suites, in the order of preference.
        Specified by:
        cipherSuites in class SslContext
      • isClient

        public final boolean isClient()
        Description copied from class: SslContext
        Returns the true if and only if this context is for client-side.
        Specified by:
        isClient in class SslContext
      • newEngine

        public final SSLEngine newEngine​(io.netty5.buffer.api.BufferAllocator alloc)
        Returns a new server-side SSLEngine with the current configuration.
        Specified by:
        newEngine in class SslContext
        Returns:
        a new SSLEngine
      • context

        @Deprecated
        public final long context()
        Deprecated.
        this method is considered unsafe as the returned pointer may be released later. Dont use it!
        Returns the pointer to the SSL_CTX object for this ReferenceCountedOpenSslContext. Be aware that it is freed as soon as the Object.finalize() method is called. At this point 0 will be returned.
      • setRejectRemoteInitiatedRenegotiation

        @Deprecated
        public void setRejectRemoteInitiatedRenegotiation​(boolean rejectRemoteInitiatedRenegotiation)
        Deprecated.
        {@deprecated Renegotiation is not supported} Specify if remote initiated renegotiation is supported or not. If not supported and the remote side tries to initiate a renegotiation a SSLHandshakeException will be thrown during decoding.
      • getRejectRemoteInitiatedRenegotiation

        @Deprecated
        public boolean getRejectRemoteInitiatedRenegotiation()
        Deprecated.
        {@deprecated Renegotiation is not supported}
        Returns:
        true because renegotiation is not supported.
      • setBioNonApplicationBufferSize

        public void setBioNonApplicationBufferSize​(int bioNonApplicationBufferSize)
        Set the size of the buffer used by the BIO for non-application based writes (e.g. handshake, renegotiation, etc...).
      • getBioNonApplicationBufferSize

        public int getBioNonApplicationBufferSize()
        Returns the size of the buffer used by the BIO for non-application based writes
      • sslCtxPointer

        @Deprecated
        public final long sslCtxPointer()
        Deprecated.
        this method is considered unsafe as the returned pointer may be released later. Dont use it!
        Returns the pointer to the SSL_CTX object for this ReferenceCountedOpenSslContext. Be aware that it is freed as soon as the release() method is called. At this point 0 will be returned.
      • certificates

        protected static X509Certificate[] certificates​(byte[][] chain)
      • refCnt

        public final int refCnt()
        Specified by:
        refCnt in interface io.netty.util.ReferenceCounted
        Specified by:
        refCnt in interface io.netty5.util.ReferenceCounted
      • retain

        public final io.netty5.util.ReferenceCounted retain()
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
      • retain

        public final io.netty5.util.ReferenceCounted retain​(int increment)
        Specified by:
        retain in interface io.netty.util.ReferenceCounted
        Specified by:
        retain in interface io.netty5.util.ReferenceCounted
      • touch

        public final io.netty5.util.ReferenceCounted touch()
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
      • touch

        public final io.netty5.util.ReferenceCounted touch​(Object hint)
        Specified by:
        touch in interface io.netty.util.ReferenceCounted
        Specified by:
        touch in interface io.netty5.util.ReferenceCounted
      • release

        public final boolean release()
        Specified by:
        release in interface io.netty.util.ReferenceCounted
        Specified by:
        release in interface io.netty5.util.ReferenceCounted
      • release

        public final boolean release​(int decrement)
        Specified by:
        release in interface io.netty.util.ReferenceCounted
        Specified by:
        release in interface io.netty5.util.ReferenceCounted