mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
6782021: It is not possible to read local computer certificates with the SunMSCAPI provider
Reviewed-by: weijun
This commit is contained in:
parent
d65fba412e
commit
5e5500cbd7
5 changed files with 186 additions and 32 deletions
|
@ -91,7 +91,11 @@ public class KeyStoreUtil {
|
|||
public static boolean isWindowsKeyStore(String storetype) {
|
||||
return storetype != null
|
||||
&& (storetype.equalsIgnoreCase("Windows-MY")
|
||||
|| storetype.equalsIgnoreCase("Windows-ROOT"));
|
||||
|| storetype.equalsIgnoreCase("Windows-ROOT")
|
||||
|| storetype.equalsIgnoreCase("Windows-MY-CURRENTUSER")
|
||||
|| storetype.equalsIgnoreCase("Windows-ROOT-CURRENTUSER")
|
||||
|| storetype.equalsIgnoreCase("Windows-MY-LOCALMACHINE")
|
||||
|| storetype.equalsIgnoreCase("Windows-ROOT-LOCALMACHINE"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,6 +106,14 @@ public class KeyStoreUtil {
|
|||
return "Windows-MY";
|
||||
} else if(storetype.equalsIgnoreCase("Windows-ROOT")) {
|
||||
return "Windows-ROOT";
|
||||
} else if(storetype.equalsIgnoreCase("Windows-MY-CURRENTUSER")) {
|
||||
return "Windows-MY-CURRENTUSER";
|
||||
} else if(storetype.equalsIgnoreCase("Windows-ROOT-CURRENTUSER")) {
|
||||
return "Windows-ROOT-CURRENTUSER";
|
||||
} else if(storetype.equalsIgnoreCase("Windows-MY-LOCALMACHINE")) {
|
||||
return "Windows-MY-LOCALMACHINE";
|
||||
} else if(storetype.equalsIgnoreCase("Windows-ROOT-LOCALMACHINE")) {
|
||||
return "Windows-ROOT-LOCALMACHINE";
|
||||
} else {
|
||||
return storetype.toUpperCase(Locale.ENGLISH);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue