Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public interface

Destroyable

javax.security.auth.Destroyable
Known Indirect Subclasses

Class Overview

Allows for special treatment of sensitive information, when it comes to destroying or clearing of the data.

Summary

Public Methods
abstract void destroy ()
Erases the sensitive information.
abstract boolean isDestroyed ()
Returns true once an object has been safely destroyed.

Public Methods

public abstract void destroy ()

Added in API level 1

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.

Throws
DestroyFailedException if the information cannot be erased.

public abstract boolean isDestroyed ()

Added in API level 1

Returns true once an object has been safely destroyed.

Returns
  • whether the object has been safely destroyed.