Skip to content
Permalink
Browse files
8246005: KeyStoreSpi::engineStore(LoadStoreParameter) spec mismatch t…
…o its behavior

Reviewed-by: xuelei
  • Loading branch information
Hai-May Chao authored and XueleiFan committed Dec 17, 2020
1 parent 763623d commit b0b70df4ad5304776d60151e54aebd6e9a839770
Showing with 9 additions and 3 deletions.
  1. +1 −0 src/java.base/share/classes/java/security/KeyStore.java
  2. +8 −3 src/java.base/share/classes/java/security/KeyStoreSpi.java
@@ -1421,6 +1421,7 @@ public final void store(OutputStream stream, char[] password)
* algorithm could not be found
* @throws CertificateException if any of the certificates included in
* the keystore data could not be stored
* @throws UnsupportedOperationException if this operation is not supported
*
* @since 1.5
*/
@@ -302,20 +302,25 @@ public abstract void engineStore(OutputStream stream, char[] password)

/**
* Stores this keystore using the given
* {@code KeyStore.LoadStoreParmeter}.
* {@code KeyStore.LoadStoreParameter}.
*
* @implSpec The default implementation throws
* an {@link UnsupportedOperationException}.
*
* @param param the {@code KeyStore.LoadStoreParmeter}
* @param param the {@code KeyStore.LoadStoreParameter}
* that specifies how to store the keystore,
* which may be {@code null}
*
* @throws IllegalArgumentException if the given
* {@code KeyStore.LoadStoreParmeter}
* {@code KeyStore.LoadStoreParameter}
* input is not recognized
* @throws IOException if there was an I/O problem with data
* @throws NoSuchAlgorithmException if the appropriate data integrity
* algorithm could not be found
* @throws CertificateException if any of the certificates included in
* the keystore data could not be stored
* @throws UnsupportedOperationException if the implementation does
* not support this operation
*
* @since 1.5
*/

1 comment on commit b0b70df

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on b0b70df Dec 17, 2020

Please sign in to comment.