jdk/src/java.base/share/classes/java/security/cert/CertPathValidator.java
changeset 32649 2ee9017c7597
parent 30033 b9c86c17164a
child 33241 27eb2d6abda9
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   309      * @see java.security.Security security properties
   309      * @see java.security.Security security properties
   310      * @return the default {@code CertPathValidator} type as specified
   310      * @return the default {@code CertPathValidator} type as specified
   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 static final String getDefaultType() {
   315         String cpvtype =
   315         String cpvtype =
   316             AccessController.doPrivileged(new PrivilegedAction<>() {
   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                 }