1 /* |
1 /* |
2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2012, 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 |
1212 /** |
1212 /** |
1213 * Applies SSLParameters to this engine. |
1213 * Applies SSLParameters to this engine. |
1214 * |
1214 * |
1215 * <p>This means: |
1215 * <p>This means: |
1216 * <ul> |
1216 * <ul> |
1217 * <li>if <code>params.getCipherSuites()</code> is non-null, |
1217 * <li>If {@code params.getCipherSuites()} is non-null, |
1218 * <code>setEnabledCipherSuites()</code> is called with that value |
1218 * {@code setEnabledCipherSuites()} is called with that value.</li> |
1219 * <li>if <code>params.getProtocols()</code> is non-null, |
1219 * <li>If {@code params.getProtocols()} is non-null, |
1220 * <code>setEnabledProtocols()</code> is called with that value |
1220 * {@code setEnabledProtocols()} is called with that value.</li> |
1221 * <li>if <code>params.getNeedClientAuth()</code> or |
1221 * <li>If {@code params.getNeedClientAuth()} or |
1222 * <code>params.getWantClientAuth()</code> return <code>true</code>, |
1222 * {@code params.getWantClientAuth()} return {@code true}, |
1223 * <code>setNeedClientAuth(true)</code> and |
1223 * {@code setNeedClientAuth(true)} and |
1224 * <code>setWantClientAuth(true)</code> are called, respectively; |
1224 * {@code setWantClientAuth(true)} are called, respectively; |
1225 * otherwise <code>setWantClientAuth(false)</code> is called. |
1225 * otherwise {@code setWantClientAuth(false)} is called.</li> |
|
1226 * <li>If {@code params.getServerNames()} is non-null, the engine will |
|
1227 * configure its server names with that value.</li> |
|
1228 * <li>If {@code params.getSNIMatchers()} is non-null, the engine will |
|
1229 * configure its SNI matchers with that value.</li> |
1226 * </ul> |
1230 * </ul> |
1227 * |
1231 * |
1228 * @param params the parameters |
1232 * @param params the parameters |
1229 * @throws IllegalArgumentException if the setEnabledCipherSuites() or |
1233 * @throws IllegalArgumentException if the setEnabledCipherSuites() or |
1230 * the setEnabledProtocols() call fails |
1234 * the setEnabledProtocols() call fails |