Package org.mortbay.jetty.security

Examples of org.mortbay.jetty.security.SslSelectChannelConnector$CachedInfo


            configureHttpConnector(httpConnector);
            server.addConnector(httpConnector);
        }
        if (https) {
            checkNotNull(keyStoreUrl, "keyStore has to be set in https mode");
            SslSelectChannelConnector httpsConnector = context.getBean(SoapServerConstants.SSL_CONNECTOR_BEAN_NAME, SslSelectChannelConnector.class);
            configureHttpsConnector(httpsConnector);
            server.addConnector(httpsConnector);
        }
    }
View Full Code Here


    Server server = new Server();

    Connector connector = new SelectChannelConnector();
    if(conf.getBoolean(REST_SSL_ENABLED, false)) {
      SslSelectChannelConnector sslConnector = new SslSelectChannelConnector();
      String keystore = conf.get(REST_SSL_KEYSTORE_STORE);
      String password = conf.get(REST_SSL_KEYSTORE_PASSWORD);
      String keyPassword = conf.get(REST_SSL_KEYSTORE_KEYPASSWORD, password);
      sslConnector.setKeystore(keystore);
      sslConnector.setPassword(password);
      sslConnector.setKeyPassword(keyPassword);
      connector = sslConnector;
    }
    connector.setPort(servlet.getConfiguration().getInt("hbase.rest.port", 8080));
    connector.setHost(servlet.getConfiguration().get("hbase.rest.host", "0.0.0.0"));
View Full Code Here

             * to build and initialise an SSLContext internally). Jetty's
             * SslSelectChannelConnector does not have a setSslContext method
             * yet, so we override its createSSLContext() method for this
             * purpose.
             */
            SslSelectChannelConnector nioResult;
            if (sslContextFactory == null) {
                nioResult = new SslSelectChannelConnector();
                nioResult.setKeyPassword(getKeyPassword());
                nioResult.setKeystore(getKeystorePath());
                nioResult.setKeystoreType(getKeystoreType());
                nioResult.setPassword(getKeystorePassword());
                nioResult.setProtocol(getSslProtocol());
                nioResult.setProvider(getSecurityProvider());
                nioResult.setSecureRandomAlgorithm(getSecureRandomAlgorithm());
                nioResult.setSslKeyManagerFactoryAlgorithm(getCertAlgorithm());
                nioResult
                        .setSslTrustManagerFactoryAlgorithm(getCertAlgorithm());
                nioResult.setTrustPassword(getKeystorePassword());
            } else {
                nioResult = new SslSelectChannelConnector() {
                    @Override
                    protected SSLContext createSSLContext() throws Exception {
                        return sslContextFactory.createSslContext();
                    }
                };
            }

            if (isNeedClientAuthentication()) {
                nioResult.setNeedClientAuth(true);
            } else if (isWantClientAuthentication()) {
                nioResult.setWantClientAuth(true);
            }

            if (excludedCipherSuites != null) {
                nioResult.setExcludeCipherSuites(excludedCipherSuites);
            }

            result = nioResult;
            break;
        case 2:
View Full Code Here

TOP

Related Classes of org.mortbay.jetty.security.SslSelectChannelConnector$CachedInfo

Copyright © 2018 www.massapicom. 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.