Package org.conscrypt
Class NativeRef
- java.lang.Object
-
- org.conscrypt.NativeRef
-
- Direct Known Subclasses:
NativeRef.EC_GROUP
,NativeRef.EC_POINT
,NativeRef.EVP_CIPHER_CTX
,NativeRef.EVP_MD_CTX
,NativeRef.EVP_PKEY
,NativeRef.EVP_PKEY_CTX
,NativeRef.HMAC_CTX
,NativeRef.SSL_SESSION
abstract class NativeRef extends java.lang.Object
Used to hold onto native OpenSSL references and run finalization on those objects. Individual types must subclass this and implement finalizer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
NativeRef.EC_GROUP
(package private) static class
NativeRef.EC_POINT
(package private) static class
NativeRef.EVP_CIPHER_CTX
(package private) static class
NativeRef.EVP_MD_CTX
(package private) static class
NativeRef.EVP_PKEY
(package private) static class
NativeRef.EVP_PKEY_CTX
(package private) static class
NativeRef.HMAC_CTX
(package private) static class
NativeRef.SSL_SESSION
-
Field Summary
Fields Modifier and Type Field Description (package private) long
address
-
Constructor Summary
Constructors Constructor Description NativeRef(long address)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
doFree(long context)
boolean
equals(java.lang.Object o)
protected void
finalize()
int
hashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
doFree
abstract void doFree(long context)
-
-