Package java.util.jar

Class StrictJarFile


  • public final class StrictJarFile
    extends Object
    A subset of the JarFile API implemented as a thin wrapper over system/core/libziparchive.
    • Method Detail

      • getName

        public String getName()
      • getManifest

        public Manifest getManifest()
      • getCertificateChains

        public Certificate[][] getCertificateChains​(ZipEntry ze)
        Return all certificate chains for a given ZipEntry belonging to this jar. This method MUST be called only after fully exhausting the InputStream belonging to this entry. Returns null if this jar file isn't signed or if this method is called before the stream is processed.
      • getCertificates

        @Deprecated
        public Certificate[] getCertificates​(ZipEntry ze)
        Deprecated.
        Switch callers to use getCertificateChains instead
        Return all certificates for a given ZipEntry belonging to this jar. This method MUST be called only after fully exhausting the InputStream belonging to this entry. Returns null if this jar file isn't signed or if this method is called before the stream is processed.