setAllowExport(boolean value)
Set to false to disallow plaintext export of this SymmetricKey's key material; set to true to allow plaintext export if the global value in FIPS_140_2 is also set to true.

erase

Erases the sensitive key material of a private or symmetric key, making the key un-usable. Keys may be erased multiple times with no consequences.

Note: After erase() has been invoked, no other methods of the Key object are guaranteed to function correctly. In particular, invoking another method after erase() may result in a NullPointerException being thrown.

finalize

public void finalize()

Erases this object prior to being reclaimed by the garbage collector.

Note: There is no guarantee of when, if ever, finalize will be invoked by the Java runtime.

Overrides:

finalize in class java.lang.Object

toString

public java.lang.String toString()

Overrides:

toString in class java.lang.Object

clone

public java.lang.Object clone()

Creates a deep copy of this SymmetricKey instance.

Overrides:

clone in class java.lang.Object

Returns:

A deep clone of the Key instance.

setAllowExport

public void setAllowExport(boolean value)

Set to false to disallow plaintext export of this SymmetricKey's key material; set to true to allow plaintext export if the global value in FIPS_140_2 is also set to true.