Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347946 Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection
  3. JDK-8350335

Release Note: Added API Note on Validating Signers to the getCertificates and getCodeSigners Methods of JarEntry and JarURLConnection

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 25
    • 25
    • core-libs

      An API note has been added to the `getCertificates()` method of the `java.util.jar.JarEntry` and `java.net.JarURLConnection` classes and the `getCodeSigners()` method of the `JarEntry` class recommending that the caller should perform further validation steps on the code signers that signed the JAR file, such as validating the code signer's certificate chain, and determining if the signer should be trusted.

      In addition, the `JarURLConnection.getCertificates()` method has been updated to specify the order of the returned array of certificates. It is the same order as specified by `java.util.jar.JarEntry.getCertificates()`.

            mullan Sean Mullan
            mullan Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: