Example usage for org.springframework.boot.autoconfigure.web ServerProperties getSsl

List of usage examples for org.springframework.boot.autoconfigure.web ServerProperties getSsl

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.web ServerProperties getSsl.

Prototype

public Ssl getSsl() 

Source Link

Usage

From source file:example.pki.VaultPkiConfiguration.java

private static SslCertificateEmbeddedServletContainerCustomizer createCustomizer(
        ServerProperties serverProperties, CertificateBundle certificateBundle) {

    Ssl ssl = serverProperties.getSsl();

    if (ssl != null) {
        ssl.setKeyAlias("vault");
        ssl.setKeyPassword("");
        ssl.setKeyStorePassword("");
    }// w ww .ja v a2  s .c  om

    return new SslCertificateEmbeddedServletContainerCustomizer(certificateBundle);
}