public class SSLUtils extends Object
Constructor and Description |
---|
SSLUtils() |
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 RSAPrivateCrtKeySpec |
decodePKCS1(byte[] keyBytes) |
static InputStream |
getInputStreamFromDataOrFile(String data,
String file) |
static boolean |
isNotNullOrEmpty(String val) |
static KeyManager[] |
keyManagers(String certData,
String certFile,
String keyData,
String keyFile,
String algo,
String passphrase,
String keyStoreFile,
String keyStorePassphrase) |
public static boolean isNotNullOrEmpty(String val)
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 KeyStore createKeyStore(String clientCertData, String clientCertFile, String clientKeyData, String clientKeyFile, String clientKeyAlgo, String clientKeyPassphrase, String keyStoreFile, String keyStorePassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
public static KeyStore createKeyStore(InputStream certInputStream, InputStream keyInputStream, String clientKeyAlgo, char[] clientKeyPassphrase, String keyStoreFile, char[] keyStorePassphrase) throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException
public static RSAPrivateCrtKeySpec decodePKCS1(byte[] keyBytes) throws IOException
IOException
public static InputStream getInputStreamFromDataOrFile(String data, String file) throws FileNotFoundException
FileNotFoundException
Copyright © 2017. All rights reserved.