public final class SSLUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isHttpsAvailable(Config config) |
static KeyManager[] |
keyManagers(Config config) |
static KeyManager[] |
keyManagers(InputStream certInputStream,
InputStream keyInputStream,
String algo,
String passphrase,
String keyStoreFile,
String keyStorePassphrase) |
static KeyManager[] |
keyManagers(String certData,
String certFile,
String keyData,
String keyFile,
String algo,
String passphrase,
String keyStoreFile,
String keyStorePassphrase) |
static SSLContext |
sslContext(Config config) |
static SSLContext |
sslContext(KeyManager[] keyManagers,
TrustManager[] trustManagers) |
static TrustManager[] |
trustManagers(Config config) |
static TrustManager[] |
trustManagers(String certData,
String certFile,
boolean isTrustCerts,
String trustStoreFile,
String trustStorePassphrase) |
public static boolean isHttpsAvailable(Config config)
public static SSLContext sslContext(Config config) throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, IOException, InvalidKeySpecException, KeyManagementException
public static SSLContext sslContext(KeyManager[] keyManagers, TrustManager[] trustManagers) throws NoSuchAlgorithmException, KeyManagementException
public static TrustManager[] trustManagers(Config config) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public static TrustManager[] trustManagers(String certData, String certFile, boolean isTrustCerts, String trustStoreFile, String trustStorePassphrase) throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException
public static KeyManager[] keyManagers(Config config) throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, CertificateException, InvalidKeySpecException, IOException
public static KeyManager[] keyManagers(String certData, String certFile, String keyData, String keyFile, String algo, String passphrase, String keyStoreFile, String keyStorePassphrase) throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, CertificateException, InvalidKeySpecException, IOException
public static KeyManager[] keyManagers(InputStream certInputStream, InputStream keyInputStream, String algo, String passphrase, String keyStoreFile, String keyStorePassphrase) throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, CertificateException, InvalidKeySpecException, IOException
Copyright © 2015–2022 Red Hat. All rights reserved.