public class KeyStoreUtils extends Object
| Constructor and Description |
|---|
KeyStoreUtils() |
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
loadKeyStore(InputStream in,
String storeId,
String storeType,
CallbackHandler storePassSrc)
Loads a key store.
|
public static KeyStore loadKeyStore(InputStream in, String storeId, String storeType, CallbackHandler storePassSrc) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, UnrecoverableKeyException, IOException
in - : the inputStream from which to read the keystorestoreId - : The store id. This is passed to the callback handler to identify the requested password record.storeType - : the type of this key store. f null, the defaut java keystore type is used.storePassSrc - : the callback handler that retrieves the store password.KeyStoreException - either NoSuchAlgorithmException or NoSuchProviderExceptionNoSuchAlgorithmException - if the algorithm used to check the integrity of the keystore cannot be foundCertificateException - if any of the certificates in the keystore could not be loadedUnrecoverableKeyException - if a password is required but not given, or if the given password was incorrectIOException - if there is an I/O or format problem with the keystore dataCopyright © 2019. All Rights Reserved.