jdk/src/java.base/share/classes/java/security/cert/CertPathValidator.java
changeset 30033 b9c86c17164a
parent 25859 3317bb8137f4
child 32649 2ee9017c7597
equal deleted inserted replaced
30019:e7dbbef69d12 30033:b9c86c17164a
   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;