37 * Implementations should override the default {@code destroy} and
38 * {@code isDestroyed} methods from the
39 * {@link javax.security.auth.Destroyable} interface to enable
40 * sensitive key information to be destroyed, cleared, or in the case
41 * where such information is immutable, unreferenced.
42 * Finally, since {@code PrivateKey} is {@code Serializable}, implementations
43 * should also override
44 * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)}
45 * to prevent keys that have been destroyed from being serialized.
46 *
47 * @see Key
48 * @see PublicKey
49 * @see Certificate
50 * @see Signature#initVerify
51 * @see java.security.interfaces.DSAPrivateKey
52 * @see java.security.interfaces.RSAPrivateKey
53 * @see java.security.interfaces.RSAPrivateCrtKey
54 *
55 * @author Benjamin Renaud
56 * @author Josh Bloch
57 */
58
59 public interface PrivateKey extends Key, javax.security.auth.Destroyable {
60
61 // Declare serialVersionUID to be compatible with JDK1.1
62 /**
63 * The class fingerprint that is set to indicate serialization
64 * compatibility with a previous version of the class.
65 */
66 static final long serialVersionUID = 6034044314589513430L;
67 }
|
37 * Implementations should override the default {@code destroy} and
38 * {@code isDestroyed} methods from the
39 * {@link javax.security.auth.Destroyable} interface to enable
40 * sensitive key information to be destroyed, cleared, or in the case
41 * where such information is immutable, unreferenced.
42 * Finally, since {@code PrivateKey} is {@code Serializable}, implementations
43 * should also override
44 * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)}
45 * to prevent keys that have been destroyed from being serialized.
46 *
47 * @see Key
48 * @see PublicKey
49 * @see Certificate
50 * @see Signature#initVerify
51 * @see java.security.interfaces.DSAPrivateKey
52 * @see java.security.interfaces.RSAPrivateKey
53 * @see java.security.interfaces.RSAPrivateCrtKey
54 *
55 * @author Benjamin Renaud
56 * @author Josh Bloch
57 * @since 1.1
58 */
59
60 public interface PrivateKey extends Key, javax.security.auth.Destroyable {
61
62 // Declare serialVersionUID to be compatible with JDK1.1
63 /**
64 * The class fingerprint that is set to indicate serialization
65 * compatibility with a previous version of the class.
66 */
67 static final long serialVersionUID = 6034044314589513430L;
68 }
|