jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpsConfigurator.java
changeset 45132 db2f2d72cd4f
parent 34894 3248b89d1921
equal deleted inserted replaced
45131:bc590fe5c060 45132:db2f2d72cd4f
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    39  * This class is used to configure the https parameters for each incoming
    39  * This class is used to configure the https parameters for each incoming
    40  * https connection on a HttpsServer. Applications need to override
    40  * https connection on a HttpsServer. Applications need to override
    41  * the {@link #configure(HttpsParameters)} method in order to change
    41  * the {@link #configure(HttpsParameters)} method in order to change
    42  * the default configuration.
    42  * the default configuration.
    43  * <p>
    43  * <p>
    44  * The following <a name="example">example</a> shows how this may be done:
    44  * The following <a id="example">example</a> shows how this may be done:
    45  *
    45  *
    46  * <blockquote><pre>
    46  * <blockquote><pre>
    47  * SSLContext sslContext = SSLContext.getInstance (....);
    47  * SSLContext sslContext = SSLContext.getInstance (....);
    48  * HttpsServer server = HttpsServer.create();
    48  * HttpsServer server = HttpsServer.create();
    49  *
    49  *