public class sun.tools.jar.JarVerifierStream extends java.util.zip.ZipInputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jar.JarVerifierStream
super_class: java.util.zip.ZipInputStream
{
private java.util.jar.JarEntry current;
descriptor: Ljava/util/jar/JarEntry;
flags: (0x0002) ACC_PRIVATE
private java.util.Hashtable<java.lang.String, java.util.Vector<sun.security.provider.SystemIdentity>> verified;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Hashtable<Ljava/lang/String;Ljava/util/Vector<Lsun/security/provider/SystemIdentity;>;>;
private java.util.jar.JarInputStream jis;
descriptor: Ljava/util/jar/JarInputStream;
flags: (0x0002) ACC_PRIVATE
private sun.tools.jar.Manifest man;
descriptor: Lsun/tools/jar/Manifest;
flags: (0x0002) ACC_PRIVATE
private java.util.ArrayList<sun.tools.jar.JarVerifierStream$CertCache> certCache;
descriptor: Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/ArrayList<Lsun/tools/jar/JarVerifierStream$CertCache;>;
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.util.zip.ZipInputStream.<init>:(Ljava/io/InputStream;)V
1: aload 0
2: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield sun.tools.jar.JarVerifierStream.verified:Ljava/util/Hashtable;
3: aload 0
aconst_null
putfield sun.tools.jar.JarVerifierStream.man:Lsun/tools/jar/Manifest;
4: aload 0
aconst_null
putfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
5: aload 0
new java.util.jar.JarInputStream
dup
aload 1
invokespecial java.util.jar.JarInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/tools/jar/JarVerifierStream;
0 7 1 is Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
invokevirtual java.util.jar.JarInputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/jar/JarVerifierStream;
Exceptions:
throws java.io.IOException
public void closeEntry();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
invokevirtual java.util.jar.JarInputStream.closeEntry:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/jar/JarVerifierStream;
Exceptions:
throws java.io.IOException
public synchronized java.util.zip.ZipEntry getNextEntry();
descriptor: ()Ljava/util/zip/ZipEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
invokevirtual java.util.jar.JarInputStream.getNextEntry:()Ljava/util/zip/ZipEntry;
checkcast java.util.jar.JarEntry
putfield sun.tools.jar.JarVerifierStream.current:Ljava/util/jar/JarEntry;
1: aload 0
getfield sun.tools.jar.JarVerifierStream.current:Ljava/util/jar/JarEntry;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/tools/jar/JarVerifierStream;
Exceptions:
throws java.io.IOException
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
invokevirtual java.util.jar.JarInputStream.read:()I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: aload 0
invokevirtual sun.tools.jar.JarVerifierStream.addIds:()V
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/tools/jar/JarVerifierStream;
1 4 1 n I
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
aload 1
iload 2
iload 3
invokevirtual java.util.jar.JarInputStream.read:([BII)I
istore 4
start local 4 1: iload 4
iconst_m1
if_icmpne 3
2: aload 0
invokevirtual sun.tools.jar.JarVerifierStream.addIds:()V
3: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/tools/jar/JarVerifierStream;
0 4 1 b [B
0 4 2 off I
0 4 3 len I
1 4 4 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void addIds();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.current:Ljava/util/jar/JarEntry;
ifnull 6
1: aload 0
getfield sun.tools.jar.JarVerifierStream.current:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getCertificates:()[Ljava/security/cert/Certificate;
astore 1
start local 1 2: aload 1
ifnull 6
3: aload 0
aload 1
invokevirtual sun.tools.jar.JarVerifierStream.getIds:([Ljava/security/cert/Certificate;)Ljava/util/Vector;
astore 2
start local 2 4: aload 2
ifnull 6
5: aload 0
getfield sun.tools.jar.JarVerifierStream.verified:Ljava/util/Hashtable;
aload 0
getfield sun.tools.jar.JarVerifierStream.current:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
aload 2
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/tools/jar/JarVerifierStream;
2 6 1 certs [Ljava/security/cert/Certificate;
4 6 2 ids Ljava/util/Vector<Lsun/security/provider/SystemIdentity;>;
public java.util.Hashtable getVerifiedSignatures();
descriptor: ()Ljava/util/Hashtable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.verified:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.isEmpty:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jar.JarVerifierStream.verified:Ljava/util/Hashtable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/jar/JarVerifierStream;
public java.util.Enumeration getBlocks();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.verified:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.isEmpty:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new sun.tools.jar.JarVerifierStream$1
dup
aload 0
invokespecial sun.tools.jar.JarVerifierStream$1.<init>:(Lsun/tools/jar/JarVerifierStream;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/jar/JarVerifierStream;
public java.util.Hashtable getNameToHash();
descriptor: ()Ljava/util/Hashtable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jar/JarVerifierStream;
public sun.tools.jar.Manifest getManifest();
descriptor: ()Lsun/tools/jar/Manifest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.tools.jar.JarVerifierStream.man:Lsun/tools/jar/Manifest;
ifnonnull 10
1: aload 0
getfield sun.tools.jar.JarVerifierStream.jis:Ljava/util/jar/JarInputStream;
invokevirtual java.util.jar.JarInputStream.getManifest:()Ljava/util/jar/Manifest;
astore 1
start local 1 2: aload 1
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.util.jar.Manifest
StackMap stack:
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 2
start local 2 5: aload 1
aload 2
invokevirtual java.util.jar.Manifest.write:(Ljava/io/OutputStream;)V
6: aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 3
start local 3 7: aload 0
new sun.tools.jar.Manifest
dup
aload 3
invokespecial sun.tools.jar.Manifest.<init>:([B)V
putfield sun.tools.jar.JarVerifierStream.man:Lsun/tools/jar/Manifest;
end local 3 end local 2 end local 1 8: goto 10
StackMap locals: sun.tools.jar.JarVerifierStream
StackMap stack: java.io.IOException
9: pop
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jar.JarVerifierStream.man:Lsun/tools/jar/Manifest;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/tools/jar/JarVerifierStream;
2 8 1 jman Ljava/util/jar/Manifest;
5 8 2 baos Ljava/io/ByteArrayOutputStream;
7 8 3 data [B
Exception table:
from to target type
1 3 9 Class java.io.IOException
4 8 9 Class java.io.IOException
protected java.util.Vector<sun.security.provider.SystemIdentity> getIds(java.security.cert.Certificate[]);
descriptor: ([Ljava/security/cert/Certificate;)Ljava/util/Vector;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=10, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
ifnonnull 4
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
4: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 5: goto 10
6: StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] top int
StackMap stack:
aload 0
getfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast sun.tools.jar.JarVerifierStream$CertCache
astore 2
start local 2 7: aload 2
aload 1
invokevirtual sun.tools.jar.JarVerifierStream$CertCache.equals:([Ljava/security/cert/Certificate;)Z
ifeq 9
8: aload 2
getfield sun.tools.jar.JarVerifierStream$CertCache.ids:Ljava/util/Vector;
areturn
9: StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] sun.tools.jar.JarVerifierStream$CertCache int
StackMap stack:
iinc 3 1
end local 2 StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] top int
StackMap stack:
10: iload 3
aload 0
getfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 6
end local 3 11: new sun.tools.jar.JarVerifierStream$CertCache
dup
invokespecial sun.tools.jar.JarVerifierStream$CertCache.<init>:()V
astore 2
start local 2 12: aload 2
aload 1
putfield sun.tools.jar.JarVerifierStream$CertCache.certs:[Ljava/security/cert/Certificate;
13: aload 1
arraylength
ifle 40
14: iconst_0
istore 3
start local 3 15: goto 39
16: StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] sun.tools.jar.JarVerifierStream$CertCache int
StackMap stack:
aload 1
iload 3
aaload
checkcast java.security.cert.X509Certificate
astore 4
start local 4 17: aload 4
invokevirtual java.security.cert.X509Certificate.getSubjectDN:()Ljava/security/Principal;
astore 5
start local 5 18: new sun.security.provider.SystemIdentity
dup
19: aload 5
invokeinterface java.security.Principal.getName:()Ljava/lang/String;
20: aconst_null
21: invokespecial sun.security.provider.SystemIdentity.<init>:(Ljava/lang/String;Ljava/security/IdentityScope;)V
astore 6
start local 6 22: aload 4
invokevirtual java.security.cert.X509Certificate.getEncoded:()[B
astore 7
start local 7 23: new sun.security.x509.X509Cert
dup
aload 7
invokespecial sun.security.x509.X509Cert.<init>:([B)V
24: astore 8
start local 8 25: new sun.tools.jar.JarVerifierStream$2
dup
aload 0
aload 6
aload 8
invokespecial sun.tools.jar.JarVerifierStream$2.<init>:(Lsun/tools/jar/JarVerifierStream;Lsun/security/provider/SystemIdentity;Ljava/security/Certificate;)V
26: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
pop
27: goto 31
StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] sun.tools.jar.JarVerifierStream$CertCache int java.security.cert.X509Certificate java.security.Principal sun.security.provider.SystemIdentity byte[] java.security.Certificate
StackMap stack: java.security.PrivilegedActionException
28: astore 9
start local 9 29: aload 9
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
30: checkcast java.security.KeyManagementException
athrow
end local 9 31: StackMap locals:
StackMap stack:
aload 2
getfield sun.tools.jar.JarVerifierStream$CertCache.ids:Ljava/util/Vector;
ifnonnull 33
32: aload 2
new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
putfield sun.tools.jar.JarVerifierStream$CertCache.ids:Ljava/util/Vector;
33: StackMap locals:
StackMap stack:
aload 2
getfield sun.tools.jar.JarVerifierStream$CertCache.ids:Ljava/util/Vector;
aload 6
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 8 end local 7 end local 6 end local 5 end local 4 34: goto 38
StackMap locals: sun.tools.jar.JarVerifierStream java.security.cert.Certificate[] sun.tools.jar.JarVerifierStream$CertCache int
StackMap stack: java.security.KeyManagementException
35: pop
goto 38
36: StackMap locals:
StackMap stack: java.io.IOException
pop
goto 38
37: StackMap locals:
StackMap stack: java.security.cert.CertificateEncodingException
pop
38: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
39: iload 3
aload 1
arraylength
if_icmplt 16
end local 3 40: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jar.JarVerifierStream.certCache:Ljava/util/ArrayList;
aload 2
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
41: aload 2
getfield sun.tools.jar.JarVerifierStream$CertCache.ids:Ljava/util/Vector;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lsun/tools/jar/JarVerifierStream;
0 42 1 certs [Ljava/security/cert/Certificate;
7 10 2 cc Lsun/tools/jar/JarVerifierStream$CertCache;
12 42 2 cc Lsun/tools/jar/JarVerifierStream$CertCache;
5 11 3 i I
15 40 3 i I
17 34 4 cert Ljava/security/cert/X509Certificate;
18 34 5 tmpName Ljava/security/Principal;
22 34 6 id Lsun/security/provider/SystemIdentity;
23 34 7 encoded [B
25 34 8 oldC Ljava/security/Certificate;
29 31 9 pae Ljava/security/PrivilegedActionException;
Exception table:
from to target type
25 27 28 Class java.security.PrivilegedActionException
16 34 35 Class java.security.KeyManagementException
16 34 36 Class java.io.IOException
16 34 37 Class java.security.cert.CertificateEncodingException
Signature: ([Ljava/security/cert/Certificate;)Ljava/util/Vector<Lsun/security/provider/SystemIdentity;>;
MethodParameters:
Name Flags
certs
}
SourceFile: "JarVerifierStream.java"
NestMembers:
sun.tools.jar.JarVerifierStream$1 sun.tools.jar.JarVerifierStream$2 sun.tools.jar.JarVerifierStream$CertCache
InnerClasses:
sun.tools.jar.JarVerifierStream$1
sun.tools.jar.JarVerifierStream$2
CertCache = sun.tools.jar.JarVerifierStream$CertCache of sun.tools.jar.JarVerifierStream