Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169335

Add a crypto policy fallback in case Security Property 'crypto.policy' does not exist

XMLWordPrintable

    • b148
    • Verified

      JceSecurity.java

      - Path cpPath = Paths.get(cryptoPolicyProperty);

         if ((cryptoPolicyProperty == null) ||
                 (cpPath.getNameCount() != 1) ||
                 (cpPath.compareTo(cpPath.getFileName()) != 0)) {
             throw new SecurityException(
                 "Invalid policy directory name format: " +
                 cryptoPolicyProperty);
         }

      + Path cpPath = Paths.get(cryptoPolicyProperty);

            wetmore Bradford Wetmore
            wetmore Bradford Wetmore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: