Most visited

Recently visited

Added in API level 1

Destroyable

public interface Destroyable

javax.security.auth.Destroyable
Known Indirect Subclasses


像凭证这样的对象可以有选择地实现这个接口来提供破坏其内容的能力。

也可以看看:

Summary

Public methods

abstract void destroy()

销毁这 Object

abstract boolean isDestroyed()

确定这个 Object是否已经被销毁。

Public methods

destroy

Added in API level 1
void destroy ()

销毁这 Object

与此Object相关的敏感信息被销毁或清除。 随后调用此Object上的某些方法将导致引发IllegalStateException

Throws
DestroyFailedException if the destroy operation fails.

SecurityException if the caller does not have permission to destroy this Object.

isDestroyed

Added in API level 1
boolean isDestroyed ()

确定这个 Object是否已经被销毁。

Returns
boolean true if this Object has been destroyed, false otherwise.

Hooray!