Examples of SSLConnectionContext


Examples of com.netflix.astyanax.connectionpool.SSLConnectionContext

                throw new IllegalStateException("Open called on already open connection");
            }

            long startTime = System.currentTimeMillis();
            try {
                final SSLConnectionContext sslCxt = cpConfig.getSSLConnectionContext();
                if(sslCxt != null) {
                    TSSLTransportParameters params = new TSSLTransportParameters(sslCxt.getSslProtocol(), sslCxt.getSslCipherSuites().toArray(new String[0]));
                    params.setTrustStore(sslCxt.getSslTruststore(), sslCxt.getSslTruststorePassword());
                    //thrift's SSL implementation does not allow you set the socket connect timeout, only read timeout
                    socket = TSSLTransportFactory.getClientSocket(getHost().getIpAddress(), getHost().getPort(), cpConfig.getSocketTimeout(), params);
                } else {
                    socket = new TSocket(getHost().getIpAddress(), getHost().getPort(), cpConfig.getConnectTimeout());
                }
View Full Code Here

Examples of org.glassfish.grizzly.ssl.SSLConnectionContext

        return isWriteComplete;
    }

    private static FilterChainContext checkAndHandleFilterChainUpdate(final FilterChainContext ctx, final FilterChainContext sendingCtx) {
        FilterChainContext ctxLocal = sendingCtx;
        SSLConnectionContext sslCtx = SSLUtils.getSslConnectionContext(ctx.getConnection());
        if (sslCtx != null) {
            FilterChain fc = sslCtx.getNewConnectionFilterChain();

            if (fc != null) {
                // Create a new FilterChain context using the new
                // FilterChain.
                // TODO: We need to mark this connection somehow
View Full Code Here

Examples of org.glassfish.grizzly.ssl.SSLConnectionContext

            // fallback           
            for (SpdyVersion version : SUPPORTED_SPDY_VERSIONS) {
                final String versionDef = version.toString();
                if (protocols.contains(versionDef)) {
                    GrizzlyAsyncHttpProvider.LOGGER.info("ProtocolSelector::selecting: " + versionDef);
                    SSLConnectionContext sslCtx = SSLUtils.getSslConnectionContext(connection);
                    sslCtx.setNewConnectionFilterChain(spdyFilterChain);
                    final SpdySession spdySession =
                            version.newSession(connection, false, spdyHandlerFilter);

                    spdySession.setLocalStreamWindowSize(spdyHandlerFilter.getInitialWindowSize());
                    spdySession.setLocalMaxConcurrentStreams(spdyHandlerFilter.getMaxConcurrentStreams());
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.