Examples of ServerSocketFactory


Examples of org.apache.catalina.net.ServerSocketFactory

        writer.print("<Connector");
        storeAttributes(writer, connector);
        writer.println(">");

        // Store nested <Factory> element
        ServerSocketFactory factory = connector.getFactory();
        if (factory != null) {
            storeFactory(writer, indent + 2, factory);
        }

        // Store nested <Listener> elements
View Full Code Here

Examples of org.apache.tomcat.util.net.ServerSocketFactory

        return "JSSE";
    }
     
    @Override
    public ServerSocketFactory getServerSocketFactory(AbstractEndpoint endpoint)  {
        ServerSocketFactory ssf = factory.getSocketFactory(endpoint);
        return ssf;
    }
View Full Code Here

Examples of org.codehaus.spice.netserve.sockets.ServerSocketFactory

    public void testDefault()
        throws Exception
    {
        final SocketFactory csf = new DefaultSocketFactory();
        final ServerSocketFactory ssf = new DefaultServerSocketFactory();

        doSocketPairTest( csf, ssf );
    }
View Full Code Here

Examples of org.glassfish.grizzly.config.ssl.ServerSocketFactory

    protected SSLContext initializeSSLContext() {
        SSLContext newSslContext = null;

        try {
            final ServerSocketFactory serverSF = getSslImplementation().getServerSocketFactory();
            if (ssl != null) {
                if (ssl.getCrlFile() != null) {
                    setAttribute(serverSF, "crlFile", ssl.getCrlFile(), null, null);
                }
                if (ssl.getTrustAlgorithm() != null) {
                    setAttribute(serverSF, "truststoreAlgorithm", ssl.getTrustAlgorithm(), null, null);
                }
                if (ssl.getKeyAlgorithm() != null) {
                    setAttribute(serverSF, "algorithm", ssl.getKeyAlgorithm(), null, null);
                }
                setAttribute(serverSF, "trustMaxCertLength", ssl.getTrustMaxCertLength(), null, null);
            }
            // key store settings
            setAttribute(serverSF, "keystore", ssl != null ? ssl.getKeyStore() : null, "javax.net.ssl.keyStore", null);
            setAttribute(serverSF, "keystoreType", ssl != null ? ssl.getKeyStoreType() : null, "javax.net.ssl.keyStoreType",
                    "JKS");
            setAttribute(serverSF, "keystorePass", ssl != null ? getKeyStorePassword(ssl) : null,
                    "javax.net.ssl.keyStorePassword", "changeit");
            // trust store settings
            setAttribute(serverSF, "truststore", ssl != null ? ssl.getTrustStore() : null, "javax.net.ssl.trustStore",
                    null);
            setAttribute(serverSF, "truststoreType", ssl != null ? ssl.getTrustStoreType() : null,
                    "javax.net.ssl.trustStoreType", "JKS");
            setAttribute(serverSF, "truststorePass", ssl != null ? getTrustStorePassword(ssl) : null,
                    "javax.net.ssl.trustStorePassword", "changeit");
            // cert nick name
            serverSF.setAttribute("keyAlias", ssl != null ? ssl.getCertNickname() : null);
            serverSF.init();
            newSslContext = serverSF.getSSLContext();
            CipherInfo.updateCiphers(newSslContext);
        } catch (IOException e) {
            if (LOGGER.isLoggable(Level.WARNING)) {
                LOGGER.log(Level.WARNING,
                        LogMessages.WARNING_GRIZZLY_CONFIG_SSL_GENERAL_CONFIG_ERROR(),
View Full Code Here

Examples of xsul.http_server.ServerSocketFactory

//            service.initManagmentAgent();
           
            XregistryXmlBeansWrapper xregistryXmlBeansWrapper = new XregistryXmlBeansWrapper(globalContext);
            HttpBasedServices httpServices;
            if(ctx != null){
                ServerSocketFactory secureSocketFactory = new PuretlsServerSocketFactory(port, ctx);
                httpServices = new XregistryHttpbasedServices(secureSocketFactory,xregistryXmlBeansWrapper.getRegistryImpl());
            }else{
                httpServices = new XregistryHttpbasedServices(port,xregistryXmlBeansWrapper.getRegistryImpl());
            }
            String cwsdlLoc = Thread.currentThread().getContextClassLoader().getResource("xregistry.wsdl").toString();
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.