Summary
Define the order of certificates returned by java.net.JarURLConnection.getCertificates()
.
Problem
The getCertificates
method of JarURLConnection
has never defined the order of the returned array of certificates.
Solution
Specify the order in the method description. It is the same order as specified by JarEntry.getCertificates()
, which it calls to get the array of certificates associated with the jar entry.
Specification
Add the following text to JarURLConnection.getCertificates()
:
* <p>The returned certificate array comprises all the signer certificates
* that were used to verify this entry. Each signer certificate is
* followed by its supporting certificate chain (which may be empty).
* Each signer certificate and its supporting certificate chain are ordered
* bottom-to-top (i.e., with the signer certificate first and the (root)
* certificate authority last).
(This is the same text as in JarEntry.getCertificates()
)
- csr of
-
JDK-8347946 Add API note that caller should validate/trust signers to the getCertificates and getCodeSigners methods of JarEntry and JarURLConnection
-
- Resolved
-