equal
deleted
inserted
replaced
311 * by the {@code certpathvalidator.type} security property, or the string |
311 * by the {@code certpathvalidator.type} security property, or the string |
312 * {@literal "PKIX"} if no such property exists. |
312 * {@literal "PKIX"} if no such property exists. |
313 */ |
313 */ |
314 public final static String getDefaultType() { |
314 public final static String getDefaultType() { |
315 String cpvtype = |
315 String cpvtype = |
316 AccessController.doPrivileged(new PrivilegedAction<String>() { |
316 AccessController.doPrivileged(new PrivilegedAction<>() { |
317 public String run() { |
317 public String run() { |
318 return Security.getProperty(CPV_TYPE); |
318 return Security.getProperty(CPV_TYPE); |
319 } |
319 } |
320 }); |
320 }); |
321 return (cpvtype == null) ? "PKIX" : cpvtype; |
321 return (cpvtype == null) ? "PKIX" : cpvtype; |