equal
deleted
inserted
replaced
219 * Should be called with the Class lock held. |
219 * Should be called with the Class lock held. |
220 */ |
220 */ |
221 private static CipherSuiteList buildAvailableCache(int minPriority) { |
221 private static CipherSuiteList buildAvailableCache(int minPriority) { |
222 // SortedSet automatically arranges ciphersuites in default |
222 // SortedSet automatically arranges ciphersuites in default |
223 // preference order |
223 // preference order |
224 Set<CipherSuite> cipherSuites = new TreeSet<CipherSuite>(); |
224 Set<CipherSuite> cipherSuites = new TreeSet<>(); |
225 Collection<CipherSuite> allowedCipherSuites = |
225 Collection<CipherSuite> allowedCipherSuites = |
226 CipherSuite.allowedCipherSuites(); |
226 CipherSuite.allowedCipherSuites(); |
227 for (CipherSuite c : allowedCipherSuites) { |
227 for (CipherSuite c : allowedCipherSuites) { |
228 if ((c.allowed == false) || (c.priority < minPriority)) { |
228 if ((c.allowed == false) || (c.priority < minPriority)) { |
229 continue; |
229 continue; |