public class KeyTrustExtensions extends Object
KeyTrustExtensions.| Constructor and Description |
|---|
KeyTrustExtensions() |
| 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 KeyManager[] |
resolveKeyManagers(String type,
String password,
File keystoreFile,
String keyManagerAlgorithm)
Resolve the
KeyManager array from the keystore that is resolved from the given parameters. |
static TrustManager[] |
resolveTrustManagers(String type,
String password,
File keystoreFile,
String trustManagerAlgorithm)
Resolve the
TrustManager array from the keystore that is resolved from the given parameters. |
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 TrustManager[] resolveTrustManagers(String type, String password, File keystoreFile, String trustManagerAlgorithm) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
TrustManager array from the keystore that is resolved from the given parameters.type - the typepassword - the passwordkeystoreFile - the keystore filetrustManagerAlgorithm - the trust manager algorithmNoSuchAlgorithmException - 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 KeyManager[] resolveKeyManagers(String type, String password, File keystoreFile, String keyManagerAlgorithm) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, UnrecoverableKeyException
KeyManager array from the keystore that is resolved from the given parameters.type - the typepassword - the passwordkeystoreFile - the keystore filekeyManagerAlgorithm - the key manager algorithmNoSuchAlgorithmException - 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 exceptionUnrecoverableKeyException - the unrecoverable key exceptionCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.