public class SSLUtils
extends java.lang.Object
Constructor and Description |
---|
SSLUtils() |
Modifier and Type | Method and Description |
---|---|
static java.security.KeyStore |
createKeyStore(byte[] clientCertData,
byte[] clientKeyData,
java.lang.String clientKeyAlgo,
java.lang.String clientKeyPassphrase,
java.lang.String keyStoreFile,
java.lang.String keyStorePassphrase) |
static java.security.KeyStore |
createKeyStore(java.io.InputStream certInputStream,
java.io.InputStream keyInputStream,
java.lang.String clientKeyAlgo,
char[] clientKeyPassphrase,
java.lang.String keyStoreFile,
char[] keyStorePassphrase) |
static java.security.spec.RSAPrivateCrtKeySpec |
decodePKCS1(byte[] keyBytes) |
static boolean |
isNotNullOrEmpty(java.lang.String val) |
static javax.net.ssl.KeyManager[] |
keyManagers(byte[] certData,
byte[] keyData,
java.lang.String algo,
java.lang.String passphrase,
java.lang.String keyStoreFile,
java.lang.String keyStorePassphrase) |
public static boolean isNotNullOrEmpty(java.lang.String val)
public static javax.net.ssl.KeyManager[] keyManagers(byte[] certData, byte[] keyData, java.lang.String algo, java.lang.String passphrase, java.lang.String keyStoreFile, java.lang.String keyStorePassphrase) throws java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException, java.security.KeyStoreException, java.security.cert.CertificateException, java.security.spec.InvalidKeySpecException, java.io.IOException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
java.security.KeyStoreException
java.security.cert.CertificateException
java.security.spec.InvalidKeySpecException
java.io.IOException
public static java.security.KeyStore createKeyStore(byte[] clientCertData, byte[] clientKeyData, java.lang.String clientKeyAlgo, java.lang.String clientKeyPassphrase, java.lang.String keyStoreFile, java.lang.String keyStorePassphrase) throws java.io.IOException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
java.security.KeyStoreException
public static java.security.KeyStore createKeyStore(java.io.InputStream certInputStream, java.io.InputStream keyInputStream, java.lang.String clientKeyAlgo, char[] clientKeyPassphrase, java.lang.String keyStoreFile, char[] keyStorePassphrase) throws java.io.IOException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
java.security.KeyStoreException
public static java.security.spec.RSAPrivateCrtKeySpec decodePKCS1(byte[] keyBytes) throws java.io.IOException
java.io.IOException
Copyright © 2019. All rights reserved.