public class KeyStoreUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
load(java.security.KeyStore keystore,
java.io.InputStream is,
char[] storePass)
Loads a KeyStore from an InputStream working around the known JDK bug
https://bugs.openjdk.java.net/browse/JDK-8157404.
|
public static void load(java.security.KeyStore keystore, java.io.InputStream is, char[] storePass) throws java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException
keystore
- The KeyStore to load from the InputStreamis
- The InputStream to use to populate the KeyStorestorePass
- The password to access the KeyStorejava.io.IOException
- If an I/O occurs reading from the given InputStreamjava.security.cert.CertificateException
- If one or more certificates can't be loaded into the
KeyStorejava.security.NoSuchAlgorithmException
- If the algorithm specified to validate the integrity of the
KeyStore cannot be foundCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.