Package org.apache.tomcat.util.security
Class KeyStoreUtil
java.lang.Object
org.apache.tomcat.util.security.KeyStoreUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
load
(KeyStore keystore, InputStream is, char[] storePass) Loads a KeyStore from an InputStream working around the known JDK bug https://bugs.openjdk.java.net/browse/JDK-8157404.
-
Method Details
-
load
public static void load(KeyStore keystore, InputStream is, char[] storePass) throws NoSuchAlgorithmException, CertificateException, IOException Loads a KeyStore from an InputStream working around the known JDK bug https://bugs.openjdk.java.net/browse/JDK-8157404. This code can be removed once the minimum Java version for Tomcat is 13.- Parameters:
keystore
- The KeyStore to load from the InputStreamis
- The InputStream to use to populate the KeyStorestorePass
- The password to access the KeyStore- Throws:
IOException
- If an I/O occurs reading from the given InputStreamCertificateException
- If one or more certificates can't be loaded into the KeyStoreNoSuchAlgorithmException
- If the algorithm specified to validate the integrity of the KeyStore cannot be found
-