-
Bug
-
Resolution: Fixed
-
P2
-
10, 11
-
b41
-
b23
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207880 | 12 | Weijun Wang | P2 | Resolved | Fixed | b04 |
JDK-8207985 | 11.0.2 | Weijun Wang | P2 | Resolved | Fixed | b01 |
JDK-8208027 | 11.0.1 | Weijun Wang | P2 | Resolved | Fixed | b03 |
Specification of KeyStore#getInstance(File, LoadStoreParameter) :
"Returns a loaded keystore object of the appropriate keystore type.
First the keystore type is determined by probing the specified file.
Then a keystore object is instantiated and loaded using the data from
that file."
As per above statement, the KeyStore should be instantiated and loaded, so that the methods like (size, getCreationData(String), getCertificate(String) , etc) could be directly called without "loading" again (i.e. a call to load method is not needed)
However the behavior noticed is that when "load" method is not called explicitly then invoking any methods that needs the KeyStore object to be loaded before they are called fails with
>java.security.KeyStoreException: Uninitialized keystore
>at java.base/java.security.KeyStore.getCreationDate(KeyStore.java:1133)
"Returns a loaded keystore object of the appropriate keystore type.
First the keystore type is determined by probing the specified file.
Then a keystore object is instantiated and loaded using the data from
that file."
As per above statement, the KeyStore should be instantiated and loaded, so that the methods like (size, getCreationData(String), getCertificate(String) , etc) could be directly called without "loading" again (i.e. a call to load method is not needed)
However the behavior noticed is that when "load" method is not called explicitly then invoking any methods that needs the KeyStore object to be loaded before they are called fails with
>java.security.KeyStoreException: Uninitialized keystore
>at java.base/java.security.KeyStore.getCreationDate(KeyStore.java:1133)
- backported by
-
JDK-8207880 KeyStore#getInstance(File, LoadStoreParameter) does not load the keystore
-
- Resolved
-
-
JDK-8207985 KeyStore#getInstance(File, LoadStoreParameter) does not load the keystore
-
- Resolved
-
-
JDK-8208027 KeyStore#getInstance(File, LoadStoreParameter) does not load the keystore
-
- Resolved
-
- relates to
-
JDK-8194307 KeyStore#getInstance with custom LoadStoreParameter succeeds with invalid password
-
- Closed
-