javax.security.auth
Interface Destroyable

All Known Implementing Classes:
KerberosKey, KerberosTicket, X500PrivateCredential

public interface Destroyable

An interface for objects that are immutable but whose sensitive data may be wiped out.


Method Summary
 void destroy()
          Destroy this object, clearing all sensitive fields appropriately.
 boolean isDestroyed()
          Tells whether or not this object has been destroyed.
 

Method Detail

destroy

void destroy()
             throws DestroyFailedException
Destroy this object, clearing all sensitive fields appropriately.

Throws:
DestroyFailedException - If this object could not be destroyed.
SecurityException - If the caller does not have permission to destroy this object.

isDestroyed

boolean isDestroyed()
Tells whether or not this object has been destroyed.

Returns:
True if this object has been destroyed.