public interface Destroyable
| javax.security.auth.Destroyable |
| |
像凭证这样的对象可以有选择地实现这个接口来提供破坏其内容的能力。
也可以看看:
公共方法(Public methods) |
|
|---|---|
abstract void |
destroy() 销毁这 |
abstract boolean |
isDestroyed() 确定这个 |
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. |
boolean isDestroyed ()
确定这个 Object是否已经被销毁。
| 返回(Returns) | |
|---|---|
boolean |
true if this Object has been destroyed, false otherwise. |