8246005: KeyStoreSpi::engineStore(LoadStoreParameter) spec mismatch to its behavior

Reviewed-by: xuelei
This commit is contained in:
Hai-May Chao 2020-12-17 20:10:54 +00:00 committed by Xue-Lei Andrew Fan
parent 763623db80
commit b0b70df4ad
2 changed files with 9 additions and 3 deletions

View file

@ -1421,6 +1421,7 @@ public class KeyStore {
* 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
*/

View file

@ -302,20 +302,25 @@ public abstract class KeyStoreSpi {
/**
* Stores this keystore using the given
* {@code KeyStore.LoadStoreParmeter}.
* {@code KeyStore.LoadStoreParameter}.
*
* @param param the {@code KeyStore.LoadStoreParmeter}
* @implSpec The default implementation throws
* an {@link UnsupportedOperationException}.
*
* @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
*/