Examples of SSLOptions


Examples of com.datastax.driver.core.SSLOptions

                throw new RuntimeException(e);
            }
            String[] css = SSLOptions.DEFAULT_SSL_CIPHER_SUITES;
            if (cipherSuites.isPresent())
                css = cipherSuites.get().split(",");
            return Optional.of(new SSLOptions(context,css));
        }
        return Optional.absent();
    }
View Full Code Here

Examples of com.datastax.driver.core.SSLOptions

                throw new RuntimeException(e);
            }
            String[] css = SSLOptions.DEFAULT_SSL_CIPHER_SUITES;
            if (cipherSuites.isPresent())
                css = cipherSuites.get().split(",");
            return Optional.of(new SSLOptions(context,css));
        }
        return Optional.absent();
    }
View Full Code Here

Examples of com.datastax.driver.core.SSLOptions

                throw new RuntimeException(e);
            }
            String[] css = SSLOptions.DEFAULT_SSL_CIPHER_SUITES;
            if (cipherSuites.isPresent())
                css = cipherSuites.get().split(",");
            return Optional.of(new SSLOptions(context,css));
        }
        return Optional.absent();
    }
View Full Code Here

Examples of com.datastax.driver.core.SSLOptions

                throw new RuntimeException(e);
            }
            String[] css = SSLOptions.DEFAULT_SSL_CIPHER_SUITES;
            if (cipherSuites.isPresent())
                css = cipherSuites.get().split(",");
            return Optional.of(new SSLOptions(context,css));
        }
        return Optional.absent();
    }
View Full Code Here

Examples of com.datastax.driver.core.SSLOptions

                throw new RuntimeException(e);
            }
            String[] css = SSLOptions.DEFAULT_SSL_CIPHER_SUITES;
            if (cipherSuites.isPresent())
                css = cipherSuites.get().split(",");
            return Optional.of(new SSLOptions(context,css));
        }
        return Optional.absent();
    }
View Full Code Here

Examples of org.italiangrid.utils.https.SSLOptions

   
   
  }

  private SSLOptions getSSLOptions() {
    SSLOptions options = new SSLOptions();

    options.setCertificateFile(getStringFromSecurityConfiguration(
        "certificate", PAPStandaloneServiceDefaults.CERTIFICATE_PATH));
    options.setKeyFile(getStringFromSecurityConfiguration("private_key",
        PAPStandaloneServiceDefaults.PRIVATE_KEY_PATH));

    options.setNeedClientAuth(true);
    options.setWantClientAuth(true);
    options.setTrustStoreDirectory(getStringFromSecurityConfiguration(
        "trust_store_dir",
        String.valueOf(PAPStandaloneServiceDefaults.TRUST_STORE_DIR)));

    int trustStoreRefreshInMinutes = getIntFromStandaloneConfiguration(
        "crl_update_interval",
        PAPStandaloneServiceDefaults.TRUST_STORE_REFRESH_PERIOD_IN_MINUTES);

    long trustStoreUpdatePeriod = TimeUnit.MINUTES
        .toMillis(trustStoreRefreshInMinutes);

    options.setTrustStoreRefreshIntervalInMsec(trustStoreUpdatePeriod);

    return options;
  }
View Full Code Here

Examples of org.italiangrid.utils.https.SSLOptions

        PAPStandaloneServiceDefaults.PORT);

    String host = getStringFromStandaloneConfiguration("hostname",
        PAPStandaloneServiceDefaults.HOSTNAME);

    SSLOptions options = getSSLOptions();
   
    CANLListener l = new CANLListener();
   
    X509CertChainValidatorExt validator = CertificateValidatorBuilder
        .buildCertificateValidator(options.getTrustStoreDirectory(),
            l,
            l,
            options.getTrustStoreRefreshIntervalInMsec());
   
    PAPConfiguration.instance().setCertChainValidator(validator);
   
    int maxRequestQueueSize = getIntFromStandaloneConfiguration(
        "max_request_queue_size",
View Full Code Here

Examples of org.xtreemfs.foundation.SSLOptions

        this.localTimeRenew = this.readOptionalInt("babudb.localTimeRenew",
                                                   3000);
        this.timeSyncInterval = this.readOptionalInt("babudb.timeSync", 20000);
       
        if (this.readOptionalBoolean("babudb.ssl.enabled", false)) {
            this.sslOptions = new SSLOptions(new FileInputStream(this
                    .readRequiredString("babudb.ssl.service_creds")), this
                    .readRequiredString("babudb.ssl.service_creds.pw"), this
                    .readRequiredString("babudb.ssl.service_creds.container"),
                            new FileInputStream(this
                    .readRequiredString("babudb.ssl.trusted_certs")), this
View Full Code Here

Examples of reactor.net.config.SslOptions

  }

  @Test
  public void tcpServerHandlesJsonPojosOverSsl() throws InterruptedException {
    final int port = SocketUtils.findAvailableTcpPort();
    SslOptions serverOpts = new SslOptions()
        .keystoreFile("./src/test/resources/server.jks")
        .keystorePasswd("changeit");

    SslOptions clientOpts = new SslOptions()
        .keystoreFile("./src/test/resources/client.jks")
        .keystorePasswd("changeit")
        .trustManagers(new Supplier<TrustManager[]>() {
          @Override
          public TrustManager[] get() {
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.