public class CertUtils extends Object
Constructor and Description |
---|
CertUtils() |
Modifier and Type | Method and Description |
---|---|
static KeyStore |
createKeyStore(InputStream certInputStream,
InputStream keyInputStream,
String clientKeyAlgo,
char[] clientKeyPassphrase) |
static KeyStore |
createKeyStore(String clientCertData,
String clientCertFile,
String clientKeyData,
String clientKeyFile,
String clientKeyAlgo,
char[] clientKeyPassphrase) |
static KeyStore |
createTrustStore(InputStream pemInputStream) |
static KeyStore |
createTrustStore(String caCertData,
String caCertFile) |
static InputStream |
getInputStreamFromDataOrFile(String data,
String file) |
public static InputStream getInputStreamFromDataOrFile(String data, String file) throws FileNotFoundException
FileNotFoundException
public static KeyStore createTrustStore(String caCertData, String caCertFile) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
public static KeyStore createTrustStore(InputStream pemInputStream) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException
public static KeyStore createKeyStore(InputStream certInputStream, InputStream keyInputStream, String clientKeyAlgo, char[] clientKeyPassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
public static KeyStore createKeyStore(String clientCertData, String clientCertFile, String clientKeyData, String clientKeyFile, String clientKeyAlgo, char[] clientKeyPassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
Copyright © 2015–2016 Red Hat. All rights reserved.