Examples of TLSServerParameters


Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

        engine = new JettyHTTPServerEngine();
        conn = new SslSocketConnector();
        conn.setPort(9003);
        engine.setConnector(conn);
        engine.setPort(9003);
        engine.setTlsServerParameters(new TLSServerParameters());
        engine.finalizeConfig();
    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters


    public synchronized NettyHttpServerEngine createNettyHttpServerEngine(String host, int port,
                                                                          String protocol) throws IOException {
        LOG.fine("Creating Netty HTTP Server Engine for port " + port + ".");
        TLSServerParameters tlsServerParameters = null;
        if (protocol.equals("https") && tlsServerParametersMap != null) {
            tlsServerParameters = tlsServerParametersMap.get(port);
        }
        NettyHttpServerEngine ref = getOrCreate(this, host, port, tlsServerParameters);
        // checking the protocol
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

            engine = serverEngineFactory.
                createJettyHTTPServerEngine(nurl.getHost(), nurl.getPort(), nurl.getProtocol());
        }

        assert engine != null;
        TLSServerParameters serverParameters = engine.getTlsServerParameters();
        if (serverParameters != null && serverParameters.getCertConstraints() != null) {
            CertificateConstraintsType constraints = serverParameters.getCertConstraints();
            if (constraints != null) {
                certConstraints = CertConstraintsJaxBUtils.createCertConstraints(constraints);
            }
        }
       
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

            engine = serverEngineFactory.
                createJettyHTTPServerEngine(nurl.getHost(), nurl.getPort(), nurl.getProtocol());
        }

        assert engine != null;
        TLSServerParameters serverParameters = engine.getTlsServerParameters();
        if (serverParameters != null && serverParameters.getCertConstraints() != null) {
            CertificateConstraintsType constraints = serverParameters.getCertConstraints();
            if (constraints != null) {
                certConstraints = CertConstraintsJaxBUtils.createCertConstraints(constraints);
            }
        }
       
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

            engine = serverEngineFactory.
                createJettyHTTPServerEngine(nurl.getHost(), nurl.getPort(), nurl.getProtocol());
        }

        assert engine != null;
        TLSServerParameters serverParameters = engine.getTlsServerParameters();
        if (serverParameters != null && serverParameters.getCertConstraints() != null) {
            CertificateConstraintsType constraints = serverParameters.getCertConstraints();
            if (constraints != null) {
                certConstraints = CertConstraintsJaxBUtils.createCertConstraints(constraints);
            }
        }
       
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

        assertTrue("Protocol must be http",
                "http".equals(engine.getProtocol()));
       
        engine = new JettyHTTPServerEngine();
        engine.setPort(9235);
        engine.setTlsServerParameters(new TLSServerParameters());
        engine.finalizeConfig();
       
        List<JettyHTTPServerEngine> list = new ArrayList<JettyHTTPServerEngine>();
        list.add(engine);
        factory.setEnginesList(list);
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

        engine = new JettyHTTPServerEngine();
        conn = new SslSocketConnector();
        conn.setPort(9003);
        engine.setConnector(conn);
        engine.setPort(9003);
        engine.setTlsServerParameters(new TLSServerParameters());
        try {
            engine.finalizeConfig();
        } catch (Exception ex) {
            fail("We should not throw exception here");
        }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

    private Map<String, TLSServerParameters> toTLSServerParamenters(
        List <TLSServerParametersIdentifiedType> list) {
        Map<String, TLSServerParameters> map = new TreeMap<String, TLSServerParameters>();
        for (TLSServerParametersIdentifiedType t : list) {
            try {            
                TLSServerParameters parameter = new TLSServerParametersConfig(t.getTlsServerParameters());
                map.put(t.getId(), parameter);
            } catch (Exception e) {
                throw new RuntimeException(
                        "Could not configure TLS for id " + t.getId(), e);
            }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

                   
                    TLSServerParametersIdentifiedType parameterTypeRef =
                        JAXBHelper.parseElement(elem, bean,
                                                TLSServerParametersIdentifiedType.class);
                   
                    TLSServerParameters param =
                        getTlsServerParameters(engineFactoryProperties, parameterTypeRef.getId());
                    bean.addPropertyValue("tlsServerParameters", param);
                   
                } else if ("threadingParameters".equals(name)) {
                    ThreadingParametersType parametersType =
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.TLSServerParameters

    }
   
    private TLSServerParameters getTlsServerParameters(
             MutablePropertyValues engineFactoryProperties,
             String reference) {
        TLSServerParameters result = null;
        PropertyValue tlsParameterMapValue  =
            engineFactoryProperties.getPropertyValue("tlsServerParametersMap");
        if (null == tlsParameterMapValue) {
            throw new RuntimeException("Could not find the tlsServerParametersMap "
                                       + "from the JettyHTTPServerEngineFactory!");
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.