equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2010, 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 |
305 enableSessionCreation, enabledProtocols); |
305 enableSessionCreation, enabledProtocols); |
306 |
306 |
307 try { |
307 try { |
308 ServerHandshaker handshaker = tmp.getServerHandshaker(); |
308 ServerHandshaker handshaker = tmp.getServerHandshaker(); |
309 |
309 |
310 for (Iterator t = enabledCipherSuites.iterator(); t.hasNext(); ) { |
310 for (Iterator<CipherSuite> t = enabledCipherSuites.iterator(); |
311 CipherSuite suite = (CipherSuite)t.next(); |
311 t.hasNext();) { |
|
312 CipherSuite suite = t.next(); |
312 if (handshaker.trySetCipherSuite(suite)) { |
313 if (handshaker.trySetCipherSuite(suite)) { |
313 checkedEnabled = true; |
314 checkedEnabled = true; |
314 return; |
315 return; |
315 } |
316 } |
316 } |
317 } |