Destroyable - JRE Emulation | JRE Emulation
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 ()

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 ()

Returns true once an object has been safely destroyed.

Returns
  • whether the object has been safely destroyed.