Package org.conscrypt

Class NativeRef

java.lang.Object
org.conscrypt.NativeRef
Direct Known Subclasses:
NativeRef.CMAC_CTX, NativeRef.EC_GROUP, NativeRef.EC_POINT, NativeRef.EVP_CIPHER_CTX, NativeRef.EVP_HPKE_CTX, NativeRef.EVP_MD_CTX, NativeRef.EVP_PKEY, NativeRef.EVP_PKEY_CTX, NativeRef.HMAC_CTX, NativeRef.SSL_SESSION

abstract class NativeRef extends Object
Used to hold onto native OpenSSL references and run finalization on those objects. Individual types must subclass this and implement finalizer.
  • Field Details

    • address

      final long address
  • Constructor Details

    • NativeRef

      NativeRef(long address)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • isNull

      public boolean isNull()
    • doFree

      abstract void doFree(long context)