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