Known Indirect Subclasses
Allows for special treatment of sensitive information, when it comes to destroying or clearing of the data.
Erases the sensitive information.
public abstract void destroy ()
Erases the sensitive information. Once an object is destroyed any calls
to its methods will throw an
IllegalStateException. If it does
not succeed a DestroyFailedException is thrown.
|DestroyFailedException||if the information cannot be erased.|
public abstract boolean isDestroyed ()
true once an object has been safely destroyed.
- whether the object has been safely destroyed.