Package org.aoju.bus.image.metric
Class SSLManagerFactory
java.lang.Object
org.aoju.bus.image.metric.SSLManagerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyManagercreateKeyManager(String type, String url, char[] storePassword, char[] keyPassword) static KeyManagercreateKeyManager(String type, String url, String storePassword, String keyPassword) static KeyManagercreateKeyManager(KeyStore ks, char[] password) static KeyManagercreateKeyManager(KeyStore ks, String password) static KeyStorecreateKeyStore(X509Certificate... certs) static TrustManagercreateTrustManager(String type, String url, char[] password) static TrustManagercreateTrustManager(String type, String url, String password) static TrustManagercreateTrustManager(X509Certificate... certs) static TrustManagerstatic KeyStoreloadKeyStore(String type, String url, char[] password) static KeyStoreloadKeyStore(String type, String url, String password)
-
Constructor Details
-
SSLManagerFactory
public SSLManagerFactory()
-
-
Method Details
-
createKeyStore
- Throws:
KeyStoreException
-
loadKeyStore
public static KeyStore loadKeyStore(String type, String url, String password) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException -
loadKeyStore
public static KeyStore loadKeyStore(String type, String url, char[] password) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException -
createKeyManager
public static KeyManager createKeyManager(String type, String url, char[] storePassword, char[] keyPassword) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
createKeyManager
public static KeyManager createKeyManager(String type, String url, String storePassword, String keyPassword) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
createKeyManager
public static KeyManager createKeyManager(KeyStore ks, String password) throws UnrecoverableKeyException, KeyStoreException -
createKeyManager
public static KeyManager createKeyManager(KeyStore ks, char[] password) throws UnrecoverableKeyException, KeyStoreException -
createTrustManager
- Throws:
KeyStoreException
-
createTrustManager
- Throws:
KeyStoreException
-
createTrustManager
public static TrustManager createTrustManager(String type, String url, char[] password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException -
createTrustManager
public static TrustManager createTrustManager(String type, String url, String password) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException
-