Package org.springframework.boot.context.embedded

Examples of org.springframework.boot.context.embedded.Ssl


    assertEquals("UTF-8", tomcat.getConnector().getURIEncoding());
  }

  @Test
  public void sslCiphersConfiguration() throws Exception {
    Ssl ssl = new Ssl();
    ssl.setKeyStore("test.jks");
    ssl.setKeyStorePassword("secret");
    ssl.setCiphers(new String[] { "ALPHA", "BRAVO", "CHARLIE" });

    TomcatEmbeddedServletContainerFactory factory = getFactory();
    factory.setSsl(ssl);

    Tomcat tomcat = getTomcat(factory);
View Full Code Here


    assertTimeout(factory, 60);
  }

  @Test
  public void sslCiphersConfiguration() throws Exception {
    Ssl ssl = new Ssl();
    ssl.setKeyStore("src/test/resources/test.jks");
    ssl.setKeyStorePassword("secret");
    ssl.setKeyPassword("password");
    ssl.setCiphers(new String[] { "ALPHA", "BRAVO", "CHARLIE" });

    JettyEmbeddedServletContainerFactory factory = getFactory();
    factory.setSsl(ssl);

    this.container = factory.getEmbeddedServletContainer();
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.Ssl

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.