jdk/src/java.base/share/classes/java/security/cert/CertPathBuilder.java
changeset 32649 2ee9017c7597
parent 30033 b9c86c17164a
child 33241 27eb2d6abda9
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   297      * @see java.security.Security security properties
   297      * @see java.security.Security security properties
   298      * @return the default {@code CertPathBuilder} type as specified
   298      * @return the default {@code CertPathBuilder} type as specified
   299      * by the {@code certpathbuilder.type} security property, or the string
   299      * by the {@code certpathbuilder.type} security property, or the string
   300      * {@literal "PKIX"} if no such property exists.
   300      * {@literal "PKIX"} if no such property exists.
   301      */
   301      */
   302     public final static String getDefaultType() {
   302     public static final String getDefaultType() {
   303         String cpbtype =
   303         String cpbtype =
   304             AccessController.doPrivileged(new PrivilegedAction<>() {
   304             AccessController.doPrivileged(new PrivilegedAction<>() {
   305                 public String run() {
   305                 public String run() {
   306                     return Security.getProperty(CPB_TYPE);
   306                     return Security.getProperty(CPB_TYPE);
   307                 }
   307                 }