javax.security.auth

Interface Destroyable

public interface Destroyable

An interface for objects that are immutable but whose sensitive data may be wiped out.
Method Summary
voiddestroy()
Destroy this object, clearing all sensitive fields appropriately.
booleanisDestroyed()
Tells whether or not this object has been destroyed.

Method Detail

destroy

public void destroy()
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

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

Returns: True if this object has been destroyed.