Class NonOwnedOpenSslCredential

java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.ssl.NonOwnedOpenSslCredential
All Implemented Interfaces:
OpenSslCredential, OpenSslCredentialPointer, ReferenceCounted

final class NonOwnedOpenSslCredential extends AbstractReferenceCounted implements OpenSslCredentialPointer
A non-owning wrapper for an OpenSslCredential pointer.

This class is used when we need to expose an SSL_CREDENTIAL pointer that is managed by OpenSSL itself (e.g., the credential selected during the handshake). Unlike DefaultOpenSslCredential, this wrapper does not free the underlying credential when its reference count reaches zero, as the lifetime is managed externally.

This is a BoringSSL-specific feature.