< prev index next >

src/share/classes/sun/security/util/LegacyAlgorithmConstraints.java

Print this page
rev 14231 : 8233228: Disable weak named curves by default in TLS, CertPath, and Signed JAR
Reviewed-by: mullan, xuelei, weijun

*** 1,7 **** /* ! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,48 **** package sun.security.util; import java.security.AlgorithmParameters; import java.security.CryptoPrimitive; import java.security.Key; import java.util.Set; - import static sun.security.util.AbstractAlgorithmConstraints.getAlgorithms; /** * Algorithm constraints for legacy algorithms. */ public class LegacyAlgorithmConstraints extends AbstractAlgorithmConstraints { // the known security property, jdk.tls.legacyAlgorithms public final static String PROPERTY_TLS_LEGACY_ALGS = "jdk.tls.legacyAlgorithms"; ! private final String[] legacyAlgorithms; public LegacyAlgorithmConstraints(String propertyName, AlgorithmDecomposer decomposer) { super(decomposer); legacyAlgorithms = getAlgorithms(propertyName); --- 26,48 ---- package sun.security.util; import java.security.AlgorithmParameters; import java.security.CryptoPrimitive; import java.security.Key; + import java.util.List; import java.util.Set; /** * Algorithm constraints for legacy algorithms. */ public class LegacyAlgorithmConstraints extends AbstractAlgorithmConstraints { // the known security property, jdk.tls.legacyAlgorithms public final static String PROPERTY_TLS_LEGACY_ALGS = "jdk.tls.legacyAlgorithms"; ! private final List<String> legacyAlgorithms; public LegacyAlgorithmConstraints(String propertyName, AlgorithmDecomposer decomposer) { super(decomposer); legacyAlgorithms = getAlgorithms(propertyName);
< prev index next >