diff --git a/src/share/classes/java/security/PrivateKey.java b/src/share/classes/java/security/PrivateKey.java index 40f112aa2fdbd7835aa023011fbd429b22d3f6bd..7d8a7ea704184ab14905080b3898ea5d21c9dda4 100644 --- a/src/share/classes/java/security/PrivateKey.java +++ b/src/share/classes/java/security/PrivateKey.java @@ -40,7 +40,8 @@ package java.security; * sensitive key information to be destroyed, cleared, or in the case * where such information is immutable, unreferenced. * Finally, since {@code PrivateKey} is {@code Serializable}, implementations - * should also override {@link java.io.ObjectOutputStream.writeObject} + * should also override + * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)} * to prevent keys that have been destroyed from being serialized. * * @see Key diff --git a/src/share/classes/javax/crypto/SecretKey.java b/src/share/classes/javax/crypto/SecretKey.java index c32eb7108b6503b74254aba8a51aee45eab6e00e..e03639ab42a88e3e01f3fd2785197b1604845585 100644 --- a/src/share/classes/javax/crypto/SecretKey.java +++ b/src/share/classes/javax/crypto/SecretKey.java @@ -40,7 +40,8 @@ package javax.crypto; * sensitive key information to be destroyed, cleared, or in the case * where such information is immutable, unreferenced. * Finally, since {@code SecretKey} is {@code Serializable}, implementations - * should also override {@link java.io.ObjectOutputStream.writeObject} + * should also override + * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)} * to prevent keys that have been destroyed from being serialized. * *

Keys that implement this interface return the string {@code RAW}