1 7 8 package java.util.jar; 9 10 import java.io.IOException ; 11 import java.util.zip.ZipEntry ; 12 import java.security.CodeSigner ; 13 import java.security.cert.Certificate ; 14 15 18 public 19 class JarEntry extends ZipEntry { 20 Attributes attr; 21 Certificate [] certs; 22 CodeSigner [] signers; 23 24 33 public JarEntry(String name) { 34 super(name); 35 } 36 37 43 public JarEntry(ZipEntry ze) { 44 super(ze); 45 } 46 47 53 public JarEntry(JarEntry je) { 54 this((ZipEntry )je); 55 this.attr = je.attr; 56 this.certs = je.certs; 57 this.signers = je.signers; 58 } 59 60 67 public Attributes getAttributes() throws IOException { 68 return attr; 69 } 70 71 88 public Certificate [] getCertificates() { 89 return certs; 90 } 91 92 107 public CodeSigner [] getCodeSigners() { 108 return signers; 109 } 110 } 111 | Popular Tags |