diff --git a/src/java.base/share/classes/java/security/KeyStore.java b/src/java.base/share/classes/java/security/KeyStore.java index 5bb98b2b217..1cc4d652990 100644 --- a/src/java.base/share/classes/java/security/KeyStore.java +++ b/src/java.base/share/classes/java/security/KeyStore.java @@ -1206,13 +1206,13 @@ public class KeyStore { /** - * Returns the creation {@code Instant} value - * of the entry identified by the given alias. + * Returns the instant that the entry identified + * by the given alias was created. * * @param alias the alias name * - * @return the creation instant of this entry, or {@code null} if the given - * alias does not exist + * @return the instant that the entry identified by the given alias + * was created, or {@code null} if the given alias does not exist. * * @throws KeyStoreException if the keystore has not been initialized * (loaded). diff --git a/src/java.base/share/classes/java/security/KeyStoreSpi.java b/src/java.base/share/classes/java/security/KeyStoreSpi.java index fe806f186ae..4a6321255f5 100644 --- a/src/java.base/share/classes/java/security/KeyStoreSpi.java +++ b/src/java.base/share/classes/java/security/KeyStoreSpi.java @@ -129,8 +129,10 @@ public abstract class KeyStoreSpi { public abstract Date engineGetCreationDate(String alias); /** - * Returns the creation {@code Instant} value - * of the entry identified by the given alias. + * Returns the instant that the entry identified + * by the given alias was created. + *

+ * Subclasses should override this method to directly return an instant. * * @implSpec * The default implementation calls {@code engineGetCreationDate(alias)}