src/main/java/com/linecorp/armeria/server/VirtualHostBuilder.java
/**
     * Sets the {@link SslContext} of this {@link VirtualHost} from the specified {@link SessionProtocol},
     * {@code keyCertChainFile}, {@code keyFile} and {@code keyPassword}.
     */
Sets the  SslContext of this  VirtualHost from the specified  SessionProtocol,
keyCertChainFile,  keyFile and  keyPassword.
Sets the SslContext of this VirtualHost from the specified SessionProtocol keyCertChainFile keyFile and keyPassword .
public VirtualHostBuilder sslContext(
            SessionProtocol protocol,
            File keyCertChainFile, File keyFile, String keyPassword) throws SSLException {
        if (requireNonNull(protocol, "protocol") != SessionProtocol.HTTPS) {
            throw new IllegalArgumentException("unsupported protocol: " + protocol);
        }
        final SslContextBuilder builder = SslContextBuilder.forServer(keyCertChainFile, keyFile, keyPassword);
        builder.sslProvider(NativeLibraries.isOpenSslAvailable() ? SslProvider.OPENSSL : SslProvider.JDK);
        builder.ciphers(Http2SecurityUtil.CIPHERS, SupportedCipherSuiteFilter.INSTANCE);
        builder.applicationProtocolConfig(HTTPS_ALPN_CFG);
        sslContext(builder.build());
        return this;
    }
public VirtualHostBuilder sslContext ( SessionProtocol protocol , File keyCertChainFile , File keyFile , String keyPassword ) throws SSLException { if ( requireNonNull ( protocol , "protocol" ) != SessionProtocol . HTTPS ) { throw new IllegalArgumentException ( "unsupported protocol: " + protocol ) ; } final SslContextBuilder builder = SslContextBuilder . forServer ( keyCertChainFile , keyFile , keyPassword ) ; builder . sslProvider ( NativeLibraries . isOpenSslAvailable ( ) ? SslProvider . OPENSSL : SslProvider . JDK ) ; builder . ciphers ( Http2SecurityUtil . CIPHERS , SupportedCipherSuiteFilter . INSTANCE ) ; builder . applicationProtocolConfig ( HTTPS_ALPN_CFG ) ; sslContext ( builder . build ( ) ) ; return this ; }
Sets the {@link SslContext} of this {@link VirtualHost} from the specified {@link SessionProtocol},
 {@code keyCertChainFile}, {@code keyFile} and {@code keyPassword}.
Sets the { @link SslContext } of this { @link VirtualHost } from the specified { @link SessionProtocol } { @code keyCertChainFile } { @code keyFile } and { @code keyPassword } .