public class KeyTrustExtensions extends Object
KeyTrustExtensions holds methods for creating TrustManager
array objects and KeyManager array objects.| Constructor and Description |
|---|
KeyTrustExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static KeyManager[] |
resolveKeyManagers(String keystoreType,
String password,
File keystoreFile,
String keyManagerAlgorithm)
Resolve the
KeyManager array from the keystore that is resolved from the given
parameters. |
static TrustManager[] |
resolveTrustManagers(String keystoreType,
String password,
File keystoreFile,
String trustManagerAlgorithm)
Resolve the
TrustManager array from the keystore that is resolved from the given
parameters. |
public static TrustManager[] resolveTrustManagers(String keystoreType, String password, File keystoreFile, String trustManagerAlgorithm) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException
TrustManager array from the keystore that is resolved from the given
parameters.keystoreType - the keystore 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 keystoreType, 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.keystoreType - the keystore 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–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.