Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Destroyable

public interface Destroyable

javax.security.auth.Destroyable
Known Indirect Subclasses


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

destroy

Added in API level 1
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.

Throws
DestroyFailedException if the information cannot be erased.

isDestroyed

Added in API level 1
boolean isDestroyed ()

Returns true once an object has been safely destroyed.

Returns
boolean whether the object has been safely destroyed.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.