Package org.jboss.soa.esb.util.ssl

Examples of org.jboss.soa.esb.util.ssl.SelfSignedTrustManager


        private SSLContext sslContext;

        public SelfSignedSSLProtocolSocketFactory(KeyStore keystore, String keystorePassword, KeyStore truststore) throws NoSuchAlgorithmException, KeyStoreException, ConfigurationException, UnrecoverableKeyException {
            KeyManager[] keyManagers = SSLUtil.getKeyManagers(keystore, keystorePassword);
            SelfSignedTrustManager trustManager = new SelfSignedTrustManager(truststore);

            sslContext = SSLContext.getInstance("SSL");
            try {
                sslContext.init(keyManagers, new TrustManager[]{trustManager}, null);
            } catch (KeyManagementException e) {
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.util.ssl.SelfSignedTrustManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.