You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

Class TokenProxy

  extended by org.mozilla.jss.util.NativeProxy
      extended by org.mozilla.jss.pkcs11.TokenProxy

public final class TokenProxy
extends NativeProxy

Constructor Summary
TokenProxy(byte[] pointer)
Method Summary
protected  void finalize()
          Finalize this NativeProxy by releasing its native resources.
protected  void releaseNativeResources()
          Release the native resources used by this proxy.
Methods inherited from class org.mozilla.jss.util.NativeProxy
assertRegistryEmpty, equals, getRegistryIndex, getRegistryIndices
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public TokenProxy(byte[] pointer)
Method Detail


protected void releaseNativeResources()
Description copied from class: NativeProxy
Release 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() calls it for you.

You must declare a finalize() method which calls super.finalize().

Specified by:
releaseNativeResources in class NativeProxy


protected void finalize()
                 throws java.lang.Throwable
Description copied from class: NativeProxy
Finalize 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(); } }

finalize in class NativeProxy