Examples of SslConnector


Examples of org.mule.transport.ssl.SslConnector

        return "ssl-namespace-config.xml";
    }

    public void testConnectorProperties() throws Exception
    {
        SslConnector connector =
                (SslConnector) muleContext.getRegistry().lookupConnector("sslConnector");
        assertNotNull(connector);
        assertEquals(1024, connector.getSendBufferSize());
        assertEquals(2048, connector.getReceiveBufferSize());
        assertTrue(connector.isKeepAlive());

        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getKeyStore().endsWith("/serverKeystore"));
        assertEquals("mulepassword", connector.getKeyPassword());
        assertEquals("mulepassword", connector.getKeyStorePassword());
        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getClientKeyStore().endsWith("/clientKeystore"));
        assertEquals("mulepassword", connector.getClientKeyStorePassword());
        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getTrustStore().endsWith("/trustStore"));
        assertEquals("mulepassword", connector.getTrustStorePassword());
        assertTrue(connector.isExplicitTrustStoreOnly());
        assertTrue(connector.isRequireClientAuthentication());

        assertEquals("foo", connector.getProtocolHandler());
    }
View Full Code Here

Examples of org.mule.transport.ssl.SslConnector

        return "tls-namespace-config.xml";
    }

    public void testConnectorProperties() throws Exception
    {
        SslConnector connector = (SslConnector)muleContext.getRegistry().lookupConnector("sslConnector");
        assertNotNull(connector);
        assertEquals(1024, connector.getSendBufferSize());
        assertEquals(2048, connector.getReceiveBufferSize());
        assertTrue(connector.isKeepAlive());

        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getKeyStore().endsWith("/serverKeystore"));
        assertEquals("mulepassword", connector.getKeyPassword());
        assertEquals("mulepassword", connector.getKeyStorePassword());
        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getClientKeyStore().endsWith("/clientKeystore"));
        assertEquals("mulepassword", connector.getClientKeyStorePassword());
        //The full path gets resolved, we're just checkng that the property got set
        assertTrue(connector.getTrustStore().endsWith("/trustStore"));
        assertEquals("mulepassword", connector.getTrustStorePassword());
        assertTrue(connector.isExplicitTrustStoreOnly());
        assertTrue(connector.isRequireClientAuthentication());
    }
View Full Code Here

Examples of org.parosproxy.paros.network.SSLConnector

    }
   
    public void setCertificate(char[] passphrase) throws Exception {

        ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
        SSLConnector ssl = null;
        if (sslFactory instanceof SSLConnector) {
            ssl = (SSLConnector) sslFactory;
            ssl.setClientCert(new File(getClientCertLocation()), passphrase);
        }
    }
View Full Code Here

Examples of org.parosproxy.paros.network.SSLConnector

        }
    }

    public void setEnableCertificate(boolean enabled) {
        ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
        SSLConnector ssl = null;
        if (sslFactory instanceof SSLConnector) {
            ssl = (SSLConnector) sslFactory;
            ssl.setEnableClientCert(enabled);
        }
       
    }
View Full Code Here

Examples of org.parosproxy.paros.network.SSLConnector

   
    public void setEnableCertificate(boolean enabled) {
        ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
       
      SSLConnector ssl = (SSLConnector) sslFactory;
        ssl.setEnableClientCert(enabled);
       
        setUseClientCert(enabled);
    }
View Full Code Here

Examples of org.parosproxy.paros.network.SSLConnector

   
    public void setActiveCertificate(){
     
      ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
       
      SSLConnector ssl = (SSLConnector) sslFactory;
        ssl.setActiveCertificate();
     
    }
View Full Code Here

Examples of org.parosproxy.paros.network.SSLConnector

   
   
    public SSLContextManager getSSLContextManager(){
   
      ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
      SSLConnector ssl = (SSLConnector) sslFactory;
       
        return ssl.getSSLContextManager();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.