jdk/src/jdk.httpserver/share/classes/com/sun/net/httpserver/HttpsConfigurator.java
equal
deleted
inserted
replaced
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 * |