final class javax.crypto.JarVerifier
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: javax.crypto.JarVerifier
super_class: java.lang.Object
{
private java.net.URL jarURL;
descriptor: Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
private boolean savePerms;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private javax.crypto.CryptoPermissions appPerms;
descriptor: Ljavax/crypto/CryptoPermissions;
flags: (0x0002) ACC_PRIVATE
void <init>(java.net.URL, boolean);
descriptor: (Ljava/net/URL;Z)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield javax.crypto.JarVerifier.appPerms:Ljavax/crypto/CryptoPermissions;
2: aload 0
aload 1
putfield javax.crypto.JarVerifier.jarURL:Ljava/net/URL;
3: aload 0
iload 2
putfield javax.crypto.JarVerifier.savePerms:Z
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/crypto/JarVerifier;
0 5 1 jarURL Ljava/net/URL;
0 5 2 savePerms Z
MethodParameters:
Name Flags
jarURL
savePerms
void verify();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield javax.crypto.JarVerifier.savePerms:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.crypto.JarVerifier.jarURL:Ljava/net/URL;
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
ldc "jar"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
getfield javax.crypto.JarVerifier.jarURL:Ljava/net/URL;
goto 5
StackMap locals:
StackMap stack:
4: new java.net.URL
dup
new java.lang.StringBuilder
dup
ldc "jar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.crypto.JarVerifier.jarURL:Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
5: StackMap locals:
StackMap stack: java.net.URL
astore 1
start local 1 6: aconst_null
astore 2
start local 2 7: new javax.crypto.JarVerifier$1
dup
aload 0
aload 1
invokespecial javax.crypto.JarVerifier$1.<init>:(Ljavax/crypto/JarVerifier;Ljava/net/URL;)V
8: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.util.jar.JarFile
astore 2
9: goto 12
StackMap locals: javax.crypto.JarVerifier java.net.URL java.util.jar.JarFile
StackMap stack: java.security.PrivilegedActionException
10: astore 3
start local 3 11: new java.lang.SecurityException
dup
new java.lang.StringBuilder
dup
ldc "Cannot load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 12: StackMap locals:
StackMap stack:
aload 2
ifnull 32
13: aload 2
ldc "cryptoPerms"
invokevirtual java.util.jar.JarFile.getJarEntry:(Ljava/lang/String;)Ljava/util/jar/JarEntry;
astore 3
start local 3 14: aload 3
ifnonnull 18
15: new java.util.jar.JarException
dup
16: ldc "Can not find cryptoPerms"
17: invokespecial java.util.jar.JarException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: java.util.jar.JarEntry
StackMap stack:
aload 0
new javax.crypto.CryptoPermissions
dup
invokespecial javax.crypto.CryptoPermissions.<init>:()V
putfield javax.crypto.JarVerifier.appPerms:Ljavax/crypto/CryptoPermissions;
19: aload 0
getfield javax.crypto.JarVerifier.appPerms:Ljavax/crypto/CryptoPermissions;
aload 2
aload 3
invokevirtual java.util.jar.JarFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
invokevirtual javax.crypto.CryptoPermissions.load:(Ljava/io/InputStream;)V
20: goto 32
StackMap locals:
StackMap stack: java.lang.Exception
21: astore 4
start local 4 22: new java.util.jar.JarException
dup
new java.lang.StringBuilder
dup
ldc "Cannot load/parse"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
23: aload 0
getfield javax.crypto.JarVerifier.jarURL:Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokespecial java.util.jar.JarException.<init>:(Ljava/lang/String;)V
25: astore 5
start local 5 26: aload 5
aload 4
invokevirtual java.util.jar.JarException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
27: aload 5
athrow
end local 5 end local 4 end local 3 28: StackMap locals: javax.crypto.JarVerifier java.net.URL java.util.jar.JarFile
StackMap stack: java.lang.Throwable
astore 6
29: aload 2
ifnull 31
30: aload 2
invokevirtual java.util.jar.JarFile.close:()V
31: StackMap locals: javax.crypto.JarVerifier java.net.URL java.util.jar.JarFile top top top java.lang.Throwable
StackMap stack:
aload 6
athrow
32: StackMap locals: javax.crypto.JarVerifier java.net.URL java.util.jar.JarFile
StackMap stack:
aload 2
ifnull 34
33: aload 2
invokevirtual java.util.jar.JarFile.close:()V
34: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Ljavax/crypto/JarVerifier;
6 35 1 url Ljava/net/URL;
7 35 2 jf Ljava/util/jar/JarFile;
11 12 3 pae Ljava/security/PrivilegedActionException;
14 28 3 je Ljava/util/jar/JarEntry;
22 28 4 ex Ljava/lang/Exception;
26 28 5 jex Ljava/util/jar/JarException;
Exception table:
from to target type
7 9 10 Class java.security.PrivilegedActionException
18 20 21 Class java.lang.Exception
7 28 28 any
Exceptions:
throws java.util.jar.JarException, java.io.IOException
static void verifyPolicySigned(java.security.cert.Certificate[]);
descriptor: ([Ljava/security/cert/Certificate;)V
flags: (0x0008) ACC_STATIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 certs [Ljava/security/cert/Certificate;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
certs
javax.crypto.CryptoPermissions getPermissions();
descriptor: ()Ljavax/crypto/CryptoPermissions;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.crypto.JarVerifier.appPerms:Ljavax/crypto/CryptoPermissions;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/crypto/JarVerifier;
}
SourceFile: "JarVerifier.java"
NestMembers:
javax.crypto.JarVerifier$1
InnerClasses:
javax.crypto.JarVerifier$1