p.setCipherSuitesFilter(ft); List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken());
private void configureCipherSuitesFilter(TLSServerParameters p, String k, String v) { k = k.substring("cipherSuitesFilter.".length()); StringTokenizer st = new StringTokenizer(v, ","); FiltersType ft = p.getCipherSuitesFilter(); if (ft == null) { ft = new FiltersType(); p.setCipherSuitesFilter(ft); } List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken()); } }
private void configureCipherSuitesFilter(TLSServerParameters p, String k, String v) { k = k.substring("cipherSuitesFilter.".length()); StringTokenizer st = new StringTokenizer(v, ","); FiltersType ft = p.getCipherSuitesFilter(); if (ft == null) { ft = new FiltersType(); p.setCipherSuitesFilter(ft); } List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken()); } }
private void configureCipherSuitesFilter(TLSServerParameters p, String k, String v) { k = k.substring("cipherSuitesFilter.".length()); StringTokenizer st = new StringTokenizer(v, ","); FiltersType ft = p.getCipherSuitesFilter(); if (ft == null) { ft = new FiltersType(); p.setCipherSuitesFilter(ft); } List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken()); } }
private void configureCipherSuitesFilter(TLSServerParameters p, String k, String v) { k = k.substring("cipherSuitesFilter.".length()); StringTokenizer st = new StringTokenizer(v, ","); FiltersType ft = p.getCipherSuitesFilter(); if (ft == null) { ft = new FiltersType(); p.setCipherSuitesFilter(ft); } List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken()); } }
private void configureCipherSuitesFilter(TLSServerParameters p, String k, String v) { k = k.substring("cipherSuitesFilter.".length()); StringTokenizer st = new StringTokenizer(v, ","); FiltersType ft = p.getCipherSuitesFilter(); if (ft == null) { ft = new FiltersType(); p.setCipherSuitesFilter(ft); } List<String> lst = "include".equals(k) ? ft.getInclude() : ft.getExclude(); while (st.hasMoreTokens()) { lst.add(st.nextToken()); } }
/** * Factory method for create a new {@link FiltersType} from the given includes and excludes. * * @param includes * the includes * @param excludes * the excludes * @return the new {@link FiltersType} with the given includes set. */ public static FiltersType newCipherSuitesFilter(String[] includes, String[] excludes) { final FiltersType filtersType = new FiltersType(); for (final String include : includes) { filtersType.getInclude().add(include); } for (final String exclude : excludes) { filtersType.getExclude().add(exclude); } return filtersType; }
filter.getInclude().add(".*_WITH_DES_.*"); filter.getInclude().add(".*_WITH_NULL_.*"); filter.getExclude().add(".*_DH_anon_.*"); tlsParams.setCipherSuitesFilter(filter);
compileRegexPatterns(excludes, filters.getExclude(), false, log); } else {
compileRegexPatterns(excludes, filters.getExclude(), false, log); } else {
List<Pattern> excludes = filters != null ? compileRegexPatterns(filters.getExclude(), false, log) : compileRegexPatterns(DEFAULT_CIPHERSUITE_FILTERS_EXCLUDE, true, log); for (int i = 0; i < supportedCipherSuites.length; i++) {
List<Pattern> excludes = filters != null ? compileRegexPatterns(filters.getExclude(), false, log) : compileRegexPatterns(DEFAULT_CIPHERSUITE_FILTERS_EXCLUDE, true, log); for (int i = 0; i < supportedCipherSuites.length; i++) {
if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude());
if (cipherSuiteFilters != null) { if (that.cipherSuiteFilters != null) { eq &= equals(cipherSuiteFilters.getExclude(), that.cipherSuiteFilters.getExclude()); eq &= equals(cipherSuiteFilters.getInclude(), that.cipherSuiteFilters.getInclude()); } else {
if (cipherSuiteFilters != null) { if (that.cipherSuiteFilters != null) { eq &= equals(cipherSuiteFilters.getExclude(), that.cipherSuiteFilters.getExclude()); eq &= equals(cipherSuiteFilters.getInclude(), that.cipherSuiteFilters.getInclude()); } else {
if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude());
if (cipherSuiteFilters != null) { if (that.cipherSuiteFilters != null) { eq &= equals(cipherSuiteFilters.getExclude(), that.cipherSuiteFilters.getExclude()); eq &= equals(cipherSuiteFilters.getInclude(), that.cipherSuiteFilters.getInclude()); } else {
if (cipherSuiteFilters != null) { if (that.cipherSuiteFilters != null) { eq &= equals(cipherSuiteFilters.getExclude(), that.cipherSuiteFilters.getExclude()); eq &= equals(cipherSuiteFilters.getInclude(), that.cipherSuiteFilters.getInclude()); } else {
public int hashCode() { int hash = disableCNCheck ? 37 : 17; if (sslSocketFactory != null) { hash = hash * 41 + System.identityHashCode(sslSocketFactory); } hash = hash(hash, useHttpsURLConnectionDefaultSslSocketFactory); hash = hash(hash, useHttpsURLConnectionDefaultHostnameVerifier); hash = hash(hash, sslCacheTimeout); hash = hash(hash, secureRandom); hash = hash(hash, protocol); hash = hash(hash, certAlias); hash = hash(hash, provider); for (String cs : ciphersuites) { hash = hash(hash, cs); } hash = hash(hash, keyManagers); hash = hash(hash, trustManagers); if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude()); } if (certConstraints != null) { hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints()); } return hash; } private int hash(int i, Object o) {
public int hashCode() { int hash = disableCNCheck ? 37 : 17; if (sslSocketFactory != null) { hash = hash * 41 + System.identityHashCode(sslSocketFactory); } hash = hash(hash, useHttpsURLConnectionDefaultSslSocketFactory); hash = hash(hash, useHttpsURLConnectionDefaultHostnameVerifier); hash = hash(hash, sslCacheTimeout); hash = hash(hash, secureRandom); hash = hash(hash, protocol); hash = hash(hash, certAlias); hash = hash(hash, provider); for (String cs : ciphersuites) { hash = hash(hash, cs); } hash = hash(hash, keyManagers); hash = hash(hash, trustManagers); if (cipherSuiteFilters != null) { hash = hash(hash, cipherSuiteFilters.getInclude()); hash = hash(hash, cipherSuiteFilters.getExclude()); } if (certConstraints != null) { hash = hash(hash, certConstraints.getIssuerDNConstraints()); hash = hash(hash, certConstraints.getSubjectDNConstraints()); } return hash; } private int hash(int i, Object o) {