Examples of SSLConfig


Examples of com.hazelcast.config.SSLConfig

        final Collection<Integer> ports = ioService.getOutboundPorts();
        outboundPortCount = ports == null ? 0 : ports.size();
        if (ports != null) {
            outboundPorts.addAll(ports);
        }
        SSLConfig sslConfig = ioService.getSSLConfig();
        if (sslConfig != null && sslConfig.isEnabled()) {
            socketChannelWrapperFactory = new SSLSocketChannelWrapperFactory(sslConfig);
            logger.info("SSL is enabled");
        } else {
            socketChannelWrapperFactory = new DefaultSocketChannelWrapperFactory();
        }
View Full Code Here

Examples of com.hazelcast.config.SSLConfig

            socketInterceptor.init(sic.getProperties());
        }

        socketOptions = networkConfig.getSocketOptions();

        SSLConfig sslConfig = networkConfig.getSSLConfig(); //ioService.getSSLConfig(); TODO
        if (sslConfig != null && sslConfig.isEnabled()) {
            socketChannelWrapperFactory = new SSLSocketChannelWrapperFactory(sslConfig);
            logger.info("SSL is enabled");
        } else {
            socketChannelWrapperFactory = new DefaultSocketChannelWrapperFactory();
        }
View Full Code Here

Examples of com.hazelcast.config.SSLConfig

        }
        clientConfig.setNetworkConfig(clientNetworkConfig);
    }

    private void handleSSLConfig(final org.w3c.dom.Node node, ClientNetworkConfig clientNetworkConfig) {
        SSLConfig sslConfig = new SSLConfig();
        final NamedNodeMap atts = node.getAttributes();
        final Node enabledNode = atts.getNamedItem("enabled");
        final boolean enabled = enabledNode != null && checkTrue(getTextContent(enabledNode).trim());
        sslConfig.setEnabled(enabled);

        for (org.w3c.dom.Node n : new IterableNodeList(node.getChildNodes())) {
            final String nodeName = cleanNodeName(n.getNodeName());
            if ("factory-class-name".equals(nodeName)) {
                sslConfig.setFactoryClassName(getTextContent(n).trim());
            } else if ("properties".equals(nodeName)) {
                fillProperties(n, sslConfig.getProperties());
            }
        }
        clientNetworkConfig.setSSLConfig(sslConfig);
    }
View Full Code Here

Examples of com.hazelcast.config.SSLConfig

        socketChannelWrapperFactory = initSocketChannel(networkConfig);
    }

    private SocketChannelWrapperFactory initSocketChannel(ClientNetworkConfig networkConfig) {
        //ioService.getSSLConfig(); TODO
        SSLConfig sslConfig = networkConfig.getSSLConfig();

        if (sslConfig != null && sslConfig.isEnabled()) {
            LOGGER.info("SSL is enabled");
            return new SSLSocketChannelWrapperFactory(sslConfig);
        } else {
            return new DefaultSocketChannelWrapperFactory();
        }
View Full Code Here

Examples of com.hazelcast.config.SSLConfig

        }
        return clientAwsConfig;
    }

    private void handleSSLConfig(final org.w3c.dom.Node node, ClientNetworkConfig clientNetworkConfig) {
        SSLConfig sslConfig = new SSLConfig();
        final NamedNodeMap atts = node.getAttributes();
        final Node enabledNode = atts.getNamedItem("enabled");
        final boolean enabled = enabledNode != null && checkTrue(getTextContent(enabledNode).trim());
        sslConfig.setEnabled(enabled);

        for (org.w3c.dom.Node n : new IterableNodeList(node.getChildNodes())) {
            final String nodeName = cleanNodeName(n.getNodeName());
            if ("factory-class-name".equals(nodeName)) {
                sslConfig.setFactoryClassName(getTextContent(n).trim());
            } else if ("properties".equals(nodeName)) {
                fillProperties(n, sslConfig.getProperties());
            }
        }
        clientNetworkConfig.setSSLConfig(sslConfig);
    }
View Full Code Here

Examples of com.hazelcast.config.SSLConfig

        }
    }

    @Test
    public void testSSLConfig() {
        SSLConfig sslConfig = config.getNetworkConfig().getSSLConfig();
        assertNotNull(sslConfig);
        assertFalse(sslConfig.isEnabled());
        assertEquals(DummySSLContextFactory.class.getName(), sslConfig.getFactoryClassName());
        assertEquals(sslContextFactory, sslConfig.getFactoryImplementation());
    }
View Full Code Here

Examples of com.starlight.intrepid.spi.mina.SSLConfig

*
*/
public class EncryptedCommTest extends CommTest {
  @Override
  protected IntrepidSPI createSPI( boolean server ) throws Exception {
    SSLConfig config = new SSLConfig( SSLContext.getDefault() );
    config.setNeedClientAuth( false );
    config.setWantClientAuth( false );
    config.setEnabledCipherSuites( new String[] { "SSL_DH_anon_WITH_RC4_128_MD5" } );
    config.setUseClientMode( !server );
    return new MINAIntrepidSPI( false, config );
  }
View Full Code Here

Examples of com.sun.appserv.management.config.SSLConfig

    final String  props  = Util.makeJ2EETypeProp( XTypes.SSL_CONFIG );
    final Set    sslConfigs  = queryMgr.queryPropsSet( props );
    final Iterator  iter  = sslConfigs.iterator();
    while( iter.hasNext() )
    {
      final SSLConfig  ssl  = (SSLConfig)iter.next();
     
      ssl.getCertNickname();
      ssl.getClientAuthEnabled();
     
      ssl.getSSL2Enabled();
      ssl.getSSL2Ciphers();
     
      ssl.getSSL3Enabled();
      ssl.getSSL3TLSCiphers();
     
      ssl.getTLSEnabled();
     
      ssl.getTLSRollbackEnabled();
    }
  }
View Full Code Here

Examples of com.sun.appserv.management.config.SSLConfig

      assert listener != null;
      assert listener == newListener;
     
      final String  CERT_NICKNAME  = NAME + "Cert";
     
      final SSLConfig ssl = listener.createSSLConfig( CERT_NICKNAME, options);
      assert ssl != null;
      assert ssl.getCertNickname().equals( CERT_NICKNAME );
     
      listener.removeSSLConfig();
    }
    finally
    {
View Full Code Here

Examples of com.sun.appserv.management.config.SSLConfig

      assert listener != null;
      assert listener == newListener;
     
      final String  CERT_NICKNAME  = NAME + "Cert";
     
      final SSLConfig ssl = listener.createSSLConfig( CERT_NICKNAME, null);
      assert ssl != null;
      assert ssl.getCertNickname().equals( CERT_NICKNAME );
     
      listener.removeSSLConfig();
    }
    finally
    {
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.