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