public class KeyStoreFactory extends Object
KeyStoreFactory holds methods for creating KeyStore objects.| Constructor and Description |
|---|
KeyStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
static KeyStore |
newKeyStore(String type,
String password,
File keystoreFile)
Factory method for load the
KeyStore object from the given file. |
static KeyStore |
newKeyStore(String type,
String password,
File keystoreFile,
boolean newEmpty)
|
public static KeyStore newKeyStore(String type, String password, File keystoreFile) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
KeyStore object from the given file.type - the type of the keystorepassword - the password of the keystorekeystoreFile - the keystore fileKeyStore objectNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionpublic static KeyStore newKeyStore(String type, String password, File keystoreFile, boolean newEmpty) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
KeyStore object and save it to the given file
with the given parameters or load an existing KeyStore object from the given file.type - the type of the keystorepassword - the password of the keystorekeystoreFile - the keystore filenewEmpty - if the KeyStore should be new created.KeyStore objectNoSuchAlgorithmException - the no such algorithm exceptionCertificateException - the certificate exceptionFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.KeyStoreException - the key store exceptionCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.