public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertSystemPropertyNameToEnvVar(String systemPropertyName) |
static KeyStore |
createKeyStore(String clientCertData,
String clientCertFile,
String clientKeyData,
String clientKeyFile,
String clientKeyAlgo,
char[] clientKeyPassphrase) |
static KeyStore |
createTrustStore(String caCertData,
String caCertFile) |
static InputStream |
getInputStreamFromDataOrFile(String data,
String file) |
static String |
getSystemPropertyOrEnvVar(String systemPropertyName) |
static Boolean |
getSystemPropertyOrEnvVar(String systemPropertyName,
Boolean defaultValue) |
static String |
getSystemPropertyOrEnvVar(String systemPropertyName,
String defaultValue) |
static String |
getSystemPropertyOrEnvVar(String systemPropertyName,
String envVarName,
String defaultValue) |
public static String getSystemPropertyOrEnvVar(String systemPropertyName, String envVarName, String defaultValue)
public static String convertSystemPropertyNameToEnvVar(String systemPropertyName)
public static String getSystemPropertyOrEnvVar(String systemPropertyName, String defaultValue)
public static Boolean getSystemPropertyOrEnvVar(String systemPropertyName, Boolean defaultValue)
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 createKeyStore(String clientCertData, String clientCertFile, String clientKeyData, String clientKeyFile, String clientKeyAlgo, char[] clientKeyPassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
Copyright © 2015 Red Hat. All rights reserved.