public class KeyStoreUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
load(File keystore,
String storetype,
String storepass,
Provider provider)
Load the keystore from the specified file.
|
public static KeyStore load(File keystore, String storetype, String storepass, Provider provider) throws KeyStoreException
keystore - the file containing the keystorestoretype - the type of the keystore (either JKS, PKCS12 or PKCS11).
If null the type is inferred from the extension of the file (.p12 or .pfx for PKCS#12 keystores)storepass - The password of the keystoreprovider - The security provider used to load the keystore (must be specified for PKCS#11 keystores)KeyStoreException - thrown if the keystore cannot be loadedCopyright © 2012–2020. All rights reserved.