Class KeyStoreUtil


public class KeyStoreUtil extends Object
  • 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 This code can be removed once the minimum Java version for Tomcat is 13.
      keystore - The KeyStore to load from the InputStream
      is - The InputStream to use to populate the KeyStore
      storePass - The password to access the KeyStore
      IOException - If an I/O occurs reading from the given InputStream
      CertificateException - If one or more certificates can't be loaded into the KeyStore
      NoSuchAlgorithmException - If the algorithm specified to validate the integrity of the KeyStore cannot be found