Examples of TLSServerParametersConfig


Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

        throws GeneralSecurityException, IOException {
       
        TLSServerParametersType parametersType = unmarshalFactoryString(s, context,
                                                                        TLSServerParametersType.class);
       
        return new TLSServerParametersConfig(parametersType);
    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

                    if ("tlsServerParameters".equals(name)) {
                       
                        TLSServerParametersType parametersType =
                            JAXBHelper.parseElement((Element)n, bean, TLSServerParametersType.class);
                       
                        TLSServerParametersConfig param =
                            new TLSServerParametersConfig(parametersType);
                       
                        bean.addPropertyValue("tlsServerParameters", param);
                       
                    } else if ("tlsServerParametersRef".equals(name)) {
                       
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

    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.spring.TLSServerParametersConfig

            if (config.getIdentifiedTLSServerParameters() != null) {

                for (TLSServerParametersIdentifiedType t : config.getIdentifiedTLSServerParameters()) {
                    try {
                        TLSServerParameters parameter
                            = new TLSServerParametersConfig(t.getTlsServerParameters());
                        sslMap.put(t.getId(), parameter);
                    } catch (Exception e) {
                        throw new RuntimeException("Could not configure TLS for id " + t.getId(), e);
                    }
                }
                factory.setTlsServerParametersMap(sslMap);
            }
            //Engines

            List<JettyHTTPServerEngine> engineList = new ArrayList<JettyHTTPServerEngine>();
            for (JettyHTTPServerEngineConfigType engine : config.getEngine()) {
                JettyHTTPServerEngine eng = new JettyHTTPServerEngine();
                //eng.setConnector(engine.getConnector());

                if (engine.isContinuationsEnabled() != null) {
                    eng.setContinuationsEnabled(engine.isContinuationsEnabled());
                }
                // eng.setHandlers(engine.getHandlers());

                if (engine.getHost() != null && !StringUtils.isEmpty(engine.getHost())) {
                    eng.setHost(engine.getHost());
                }
                if (engine.getMaxIdleTime() != null) {
                    eng.setMaxIdleTime(engine.getMaxIdleTime());
                }
                if (engine.getPort() != null) {
                    eng.setPort(engine.getPort());
                }
                if (engine.isReuseAddress() != null) {
                    eng.setReuseAddress(engine.isReuseAddress());
                }
                if (engine.isSessionSupport() != null) {
                    eng.setSessionSupport(engine.isSessionSupport());
                }
                if (engine.getThreadingParameters() != null) {
                    ThreadingParametersType threads = engine.getThreadingParameters();
                    ThreadingParameters rThreads = new ThreadingParameters();
                    rThreads.setMaxThreads(threads.getMaxThreads());
                    rThreads.setMinThreads(threads.getMinThreads());

                    eng.setThreadingParameters(rThreads);
                }

                //eng.setServer(engine.getTlsServerParameters());
                if (engine.getTlsServerParameters() != null) {
                    TLSServerParameters parameter = null;
                    try {
                        parameter = new TLSServerParametersConfig(engine.getTlsServerParameters());
                        eng.setTlsServerParameters(parameter);
                    } catch (Exception e) {
                        throw new RuntimeException("Could not configure TLS for engine on  "
                            + eng.getHost() + ":" + eng.getPort(), e);
                    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

        throws GeneralSecurityException, IOException {
       
        TLSServerParametersType parametersType = unmarshalFactoryString(s, context,
                                                                        TLSServerParametersType.class);
       
        return new TLSServerParametersConfig(parametersType);
    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

    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.spring.TLSServerParametersConfig

        throws GeneralSecurityException, IOException {
       
        TLSServerParametersType parametersType = unmarshalFactoryString(s,
                                                                        TLSServerParametersType.class);
       
        return new TLSServerParametersConfig(parametersType);
    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

        throws GeneralSecurityException, IOException {
       
        TLSServerParametersType parametersType = unmarshalFactoryString(s,
                                                                        TLSServerParametersType.class);
       
        return new TLSServerParametersConfig(parametersType);
    }
View Full Code Here

Examples of org.apache.cxf.configuration.jsse.spring.TLSServerParametersConfig

    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.spring.TLSServerParametersConfig

                if ("tlsServerParameters".equals(name)) {
                   
                    TLSServerParametersType parametersType =
                        JAXBHelper.parseElement(elem, bean, TLSServerParametersType.class);
                   
                    TLSServerParametersConfig param =
                        new TLSServerParametersConfig(parametersType);
                   
                    bean.addPropertyValue("tlsServerParameters", param);
                   
                } else if ("tlsServerParametersRef".equals(name)) {
                   
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.