[patch] merge signed jar file support from classpath
Andreas Tobler
toa@pop.agri.ch
Thu Nov 18 23:23:00 GMT 2004
Hi all,
testing the following patch right now.
Please review carefully since I had some conflicts in URLClassLoader.java.
Would it be ok for main?
Andreas
2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
Merge signed jar file support from Classpath:
* Makefile.am: Add new files.
* Makefile.in: Regenerate.
2004-11-07 Casey Marshall <csm@gnu.org>
Signed JAR file support.
* java/net/URLClassLoader.java
(JarURLResource.getCertificates): Re-read jar entry to ensure
certificates are picked up.
(findClass): Fill in class `signers' field, too.
* java/util/jar/JarFile.java (META_INF): New constant.
(PKCS7_DSA_SUFFIX): New constant.
(PKCS7_RSA_SUFFIX): New constant.
(DIGEST_KEY_SUFFIX): New constant.
(SF_SUFFIX): New constant.
(MD2_OID): New constant.
(MD4_OID): New constant.
(MD5_OID): New constant.
(SHA1_OID): New constant.
(DSA_ENCRYPTION_OID): New constant.
(RSA_ENCRYPTION_OID): New constant.
(signaturesRead): New field.
(verified): New field.
(entryCerts): New field.
(DEBUG): New constant.
(debug): New method.
(JarEnumeration.nextElement): Fill in entry certificates, read
signatures if they haven't been read.
(getEntry): Likewise.
(getInputStream): Verify stream if it hasn't been verified yet.
(readSignatures): New method.
(verify): New method.
(verifyHashes): New method.
(readManifestEntry): New method.
(EntryInputStream): New class.
* java/util/zip/InflaterInputStream.java
Don't defer to underlying stream for mark/reset.
(markSupported): New method; return `false'.
(mark): New method.
(reset): New method.
* gnu/java/io/Base64InputStream.java (decode): New class method.
* gnu/java/security/der/DERReader.java: Don't make class final.
(in): Made protected.
(encBuf): Likewise.
(readLength): Likewise.
* gnu/java/security/ber/BER.java,
* gnu/java/security/ber/BEREncodingException.java,
* gnu/java/security/ber/BERReader.java,
* gnu/java/security/ber/BERValue.java,
* gnu/java/security/pkcs/PKCS7SignedData.java,
* gnu/java/security/pkcs/SignerInfo.java: New files.
2004-11-07 Casey Marshall <csm@gnu.org>
* gnu/java/security/provider/GnuDSAPrivateKey.java
(encodedKey): New field.
(getFormat): Return "PKCS#8".
(getEncoded): Implemented.
(toString): Check for 'null' values.
* gnu/java/security/provider/GnuDSAPublicKey.java
(encodedKey): New field.
(getFormat): Return "X.509".
(getEncoded): Implemented.
(toString): Check for 'null' values.
2004-11-07 Mark Wielaard <mark@klomp.org>
* java/util/jar/JarFile.java (EntryInputStream): Add actual
InputStream as argument.
(getInputStream): Construct a new EntryInputStream with the result of
super.getInputStream(entry).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cvs-jar.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041118/9045a182/attachment.ksh>
More information about the Java-patches
mailing list