code: @Deprecated
      public KeyStore loadPKCS12File(InputStream inputStreamOfP12, String password) throws CertificateException, IOException {
          try {
              return CertUtils.toKeyStore(inputStreamOfP12, password.toCharArray());
          } catch (IllegalStateException ex) {
              throw new IOException("Key from the input stream could not be decrypted", ex);
          }
      }
docs: Load the keystore from an already opened input stream.
  
  The caller is responsible for closing the stream after this method returns successfully or fails.
  
  @param inputStreamOfP12
  <code>InputStream</code> containing the signing key store.
  @param password
  Password to access the key store
  @return Key store loaded from <code>inputStreamOfP12</code>
  @throws IOException
  @throws CertificateException
  @throws IllegalArgumentException
  If the parameter <code>inputStreamOfP12</code> is <code>null</code>.
  @deprecated