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

AlgorithmConstraints:permits method not throwing IAEx when primitives are empty

XMLWordPrintable

    • b32
    • Verified

        It's observed that the the JDK implementation is deviating from the stated spec for permits method regarding throwing IAEx.
        https://download.java.net/java/early_access/jdk14/docs/api/java.base/java/security/AlgorithmConstraints.html#permits(java.util.Set,java.lang.String,java.security.AlgorithmParameters)

        "Throws:
        IllegalArgumentException - if primitives or algorithm is null or empty"

        It's not working for a case when primitives are empty and non null algorithm.

        Please check the attached sample code demonstrating the problem

              ascarpino Anthony Scarpino
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: