< prev index next >

src/java.base/share/classes/sun/security/util/CurveDB.java

Print this page
rev 54061 : 8226374: Restrict TLS signature schemes and named groups
Reviewed-by: mullan

*** 60,70 **** public static Collection<? extends NamedCurve>getSupportedCurves() { return specCollection; } // Return a NamedCurve for the specified OID/name or null if unknown. ! static NamedCurve lookup(String name) { NamedCurve spec = oidMap.get(name); if (spec != null) { return spec; } --- 60,70 ---- public static Collection<? extends NamedCurve>getSupportedCurves() { return specCollection; } // Return a NamedCurve for the specified OID/name or null if unknown. ! public static NamedCurve lookup(String name) { NamedCurve spec = oidMap.get(name); if (spec != null) { return spec; }
*** 81,91 **** return lengthMap.get(length); } // Convert the given ECParameterSpec object to a NamedCurve object. // If params does not represent a known named curve, return null. ! static NamedCurve lookup(ECParameterSpec params) { if ((params instanceof NamedCurve) || (params == null)) { return (NamedCurve)params; } // This is a hack to allow SunJSSE to work with 3rd party crypto --- 81,91 ---- return lengthMap.get(length); } // Convert the given ECParameterSpec object to a NamedCurve object. // If params does not represent a known named curve, return null. ! public static NamedCurve lookup(ECParameterSpec params) { if ((params instanceof NamedCurve) || (params == null)) { return (NamedCurve)params; } // This is a hack to allow SunJSSE to work with 3rd party crypto
< prev index next >