Package org.mozilla.jss.pkcs11
Class ModuleProxy
java.lang.Object
org.mozilla.jss.util.NativeProxy
org.mozilla.jss.pkcs11.ModuleProxy
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.mozilla.jss.util.NativeProxy
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Finalize this NativeProxy by releasing its native resources.protected voidRelease the native resources used by this proxy.Methods inherited from class org.mozilla.jss.util.NativeProxy
assertRegistryEmpty, clear, close, equals, hashCode, isNull, purgeAllInRegistry, toString
-
Constructor Details
-
ModuleProxy
ModuleProxy(byte[] pointer)
-
-
Method Details
-
releaseNativeResources
protected void releaseNativeResources()Description copied from class:NativeProxyRelease the native resources used by this proxy. Subclasses of NativeProxy must define this method to clean up data structures in C code that are referenced by this proxy. releaseNativeResources() will usually be implemented as a native method.You don't call this method; NativeProxy.finalize() or close() calls it for you.
If you free these resources explicitly, call clear(); instead.- Specified by:
releaseNativeResourcesin classNativeProxy
-
finalize
Description copied from class:NativeProxyFinalize this NativeProxy by releasing its native resources. The finalizer calls releaseNativeResources() so you don't have to. This finalizer should be called from the finalize() method of all subclasses: class MyProxy extends NativeProxy { [...] protected void finalize() throws Throwable { // do any object-specific finalization other than // releasing native resources [...] super.finalize(); } }- Overrides:
finalizein classNativeProxy- Throws:
Throwable
-