FileDocCategorySizeDatePackage
Destroyable.javaAPI DocJava SE 5 API1263Fri Aug 26 14:57:46 BST 2005javax.security.auth

Destroyable

public interface Destroyable
Objects such as credentials may optionally implement this interface to provide the capability to destroy its contents.
version
1.11, 12/19/03
see
javax.security.auth.Subject

Fields Summary
Constructors Summary
Methods Summary
public voiddestroy()
Destroy this Object.

Sensitive information associated with this Object is destroyed or cleared. Subsequent calls to certain methods on this Object will result in an IllegalStateException being thrown.

exception
DestroyFailedException if the destroy operation fails.

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

public booleanisDestroyed()
Determine if this Object has been destroyed.

return
true if this Object has been destroyed, false otherwise.