A question about signed jar file.

LiuZhen (lz@pact518.hit.edu.cn)
Wed, 23 Dec 1998 20:21:58 +0800

--------------9C7A483DFAFE505BBFAEBA07
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

According to the JDK1.2's Documentation, there is method
getCertificates() in the class java.util.jar.JarEntry, and an instance
of JarEntry could be obtained by calling method getNextJarEntry() of
class java.util.jar.JarInputStream.
I have generated a keystore using keytool and signed a jar file
using the keystore and jarsigner. I want to obtain the certificates
associated with the files included in the jar file.
After an instance of java.util.jar.JarInputStream is obtained by
calling new java.util.jar.JarInputStream("the name of a signed jar
file"), getNextJarEntry()is called and an instance of JarEntry is
returned, but when calling getCertificates() method on the returned
instance of JarEntry, null is returned.
What is the problem?

Sincerely yours,
LiuZhen
98-12-23

--------------9C7A483DFAFE505BBFAEBA07
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
     According to the JDK1.2's Documentation, there is method getCertificates() in the class java.util.jar.JarEntry, and an instance of JarEntry could be obtained by calling method getNextJarEntry() of class java.util.jar.JarInputStream.
    I have generated a keystore using keytool and signed a jar file using  the keystore and jarsigner. I want to obtain the certificates associated with the files included in the jar file.
    After an instance of java.util.jar.JarInputStream is obtained by calling new java.util.jar.JarInputStream("the name of a signed jar file")getNextJarEntry()is called and an instance of JarEntry is returned, but when calling getCertificates() method on the returned instance of JarEntrynull is returned.
     What is the problem?

Sincerely yours,
LiuZhen
98-12-23 --------------9C7A483DFAFE505BBFAEBA07--