class sun.security.tools.jarsigner.SignatureFile
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.tools.jarsigner.SignatureFile
super_class: java.lang.Object
{
java.util.jar.Manifest sf;
descriptor: Ljava/util/jar/Manifest;
flags: (0x0000)
java.lang.String baseName;
descriptor: Ljava/lang/String;
flags: (0x0000)
public void <init>(java.security.MessageDigest[], java.util.jar.Manifest, sun.security.util.ManifestDigester, java.lang.String, boolean);
descriptor: ([Ljava/security/MessageDigest;Ljava/util/jar/Manifest;Lsun/security/util/ManifestDigester;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=16, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 4
putfield sun.security.tools.jarsigner.SignatureFile.baseName:Ljava/lang/String;
2: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 3: ldc "java.vendor"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 4: aload 0
new java.util.jar.Manifest
dup
invokespecial java.util.jar.Manifest.<init>:()V
putfield sun.security.tools.jarsigner.SignatureFile.sf:Ljava/util/jar/Manifest;
5: aload 0
getfield sun.security.tools.jarsigner.SignatureFile.sf:Ljava/util/jar/Manifest;
invokevirtual java.util.jar.Manifest.getMainAttributes:()Ljava/util/jar/Attributes;
astore 8
start local 8 6: aload 8
getstatic java.util.jar.Attributes$Name.SIGNATURE_VERSION:Ljava/util/jar/Attributes$Name;
invokevirtual java.util.jar.Attributes$Name.toString:()Ljava/lang/String;
ldc "1.0"
invokevirtual java.util.jar.Attributes.putValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
7: aload 8
ldc "Created-By"
new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
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;
invokevirtual java.util.jar.Attributes.putValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
8: iload 5
ifeq 16
9: iconst_0
istore 9
start local 9 10: goto 15
11: StackMap locals: sun.security.tools.jarsigner.SignatureFile java.security.MessageDigest[] java.util.jar.Manifest sun.security.util.ManifestDigester java.lang.String int java.lang.String java.lang.String java.util.jar.Attributes int
StackMap stack:
aload 8
new java.lang.StringBuilder
dup
aload 1
iload 9
aaload
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-Digest-Manifest"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 3
aload 1
iload 9
aaload
invokevirtual sun.security.util.ManifestDigester.manifestDigest:(Ljava/security/MessageDigest;)[B
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
13: invokevirtual java.util.jar.Attributes.putValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
14: iinc 9 1
StackMap locals:
StackMap stack:
15: iload 9
aload 1
arraylength
if_icmplt 11
end local 9 16: StackMap locals:
StackMap stack:
aload 3
ldc "Manifest-Main-Attributes"
iconst_0
invokevirtual sun.security.util.ManifestDigester.get:(Ljava/lang/String;Z)Lsun/security/util/ManifestDigester$Entry;
17: astore 9
start local 9 18: aload 9
ifnull 28
19: iconst_0
istore 10
start local 10 20: goto 26
21: StackMap locals: sun.security.util.ManifestDigester$Entry int
StackMap stack:
aload 8
new java.lang.StringBuilder
dup
aload 1
iload 10
aaload
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: ldc "-Digest-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "Manifest-Main-Attributes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
23: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 9
aload 1
iload 10
aaload
invokevirtual sun.security.util.ManifestDigester$Entry.digest:(Ljava/security/MessageDigest;)[B
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
24: invokevirtual java.util.jar.Attributes.putValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
25: iinc 10 1
StackMap locals:
StackMap stack:
26: iload 10
aload 1
arraylength
if_icmplt 21
end local 10 27: goto 31
28: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
29: ldc "ManifestDigester failed to create Manifest-Main-Attribute entry"
30: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.tools.jarsigner.SignatureFile.sf:Ljava/util/jar/Manifest;
invokevirtual java.util.jar.Manifest.getEntries:()Ljava/util/Map;
astore 10
start local 10 32: aload 2
invokevirtual java.util.jar.Manifest.getEntries:()Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
33: astore 11
start local 11 34: goto 48
35: StackMap locals: java.util.Map java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 12
start local 12 36: aload 12
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 13
start local 13 37: aload 3
aload 13
iconst_0
invokevirtual sun.security.util.ManifestDigester.get:(Ljava/lang/String;Z)Lsun/security/util/ManifestDigester$Entry;
astore 9
38: aload 9
ifnull 48
39: new java.util.jar.Attributes
dup
invokespecial java.util.jar.Attributes.<init>:()V
astore 14
start local 14 40: iconst_0
istore 15
start local 15 41: goto 46
42: StackMap locals: sun.security.tools.jarsigner.SignatureFile java.security.MessageDigest[] java.util.jar.Manifest sun.security.util.ManifestDigester java.lang.String int java.lang.String java.lang.String java.util.jar.Attributes sun.security.util.ManifestDigester$Entry java.util.Map java.util.Iterator java.util.Map$Entry java.lang.String java.util.jar.Attributes int
StackMap stack:
aload 14
new java.lang.StringBuilder
dup
aload 1
iload 15
aaload
invokevirtual java.security.MessageDigest.getAlgorithm:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-Digest"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
43: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 9
aload 1
iload 15
aaload
invokevirtual sun.security.util.ManifestDigester$Entry.digest:(Ljava/security/MessageDigest;)[B
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
44: invokevirtual java.util.jar.Attributes.putValue:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
45: iinc 15 1
StackMap locals:
StackMap stack:
46: iload 15
aload 1
arraylength
if_icmplt 42
end local 15 47: aload 10
aload 13
aload 14
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 14 end local 13 end local 12 48: StackMap locals: sun.security.tools.jarsigner.SignatureFile java.security.MessageDigest[] java.util.jar.Manifest sun.security.util.ManifestDigester java.lang.String int java.lang.String java.lang.String java.util.jar.Attributes sun.security.util.ManifestDigester$Entry java.util.Map java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 35
49: return
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 50 0 this Lsun/security/tools/jarsigner/SignatureFile;
0 50 1 digests [Ljava/security/MessageDigest;
0 50 2 mf Ljava/util/jar/Manifest;
0 50 3 md Lsun/security/util/ManifestDigester;
0 50 4 baseName Ljava/lang/String;
0 50 5 signManifest Z
3 50 6 version Ljava/lang/String;
4 50 7 javaVendor Ljava/lang/String;
6 50 8 mattr Ljava/util/jar/Attributes;
10 16 9 i I
18 50 9 mde Lsun/security/util/ManifestDigester$Entry;
20 27 10 i I
32 50 10 entries Ljava/util/Map<Ljava/lang/String;Ljava/util/jar/Attributes;>;
34 50 11 mit Ljava/util/Iterator<Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/jar/Attributes;>;>;
36 48 12 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/jar/Attributes;>;
37 48 13 name Ljava/lang/String;
40 48 14 attr Ljava/util/jar/Attributes;
41 47 15 i I
MethodParameters:
Name Flags
digests
mf
md
baseName
signManifest
public void write(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.tools.jarsigner.SignatureFile.sf:Ljava/util/jar/Manifest;
aload 1
invokevirtual java.util.jar.Manifest.write:(Ljava/io/OutputStream;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/tools/jarsigner/SignatureFile;
0 2 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public java.lang.String getMetaName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "META-INF/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.tools.jarsigner.SignatureFile.baseName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".SF"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/tools/jarsigner/SignatureFile;
public java.lang.String getBaseName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.tools.jarsigner.SignatureFile.baseName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/tools/jarsigner/SignatureFile;
public sun.security.tools.jarsigner.SignatureFile$Block generateBlock(java.security.PrivateKey, java.lang.String, java.security.cert.X509Certificate[], boolean, java.lang.String, java.security.cert.X509Certificate, java.lang.String, java.lang.String, com.sun.jarsigner.ContentSigner, java.lang.String[], java.util.zip.ZipFile);
descriptor: (Ljava/security/PrivateKey;Ljava/lang/String;[Ljava/security/cert/X509Certificate;ZLjava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/lang/String;Lcom/sun/jarsigner/ContentSigner;[Ljava/lang/String;Ljava/util/zip/ZipFile;)Lsun/security/tools/jarsigner/SignatureFile$Block;
flags: (0x0001) ACC_PUBLIC
Code:
stack=14, locals=12, args_size=12
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 start local 10 start local 11 0: new sun.security.tools.jarsigner.SignatureFile$Block
dup
aload 0
aload 1
aload 2
aload 3
iload 4
1: aload 5
aload 6
aload 7
aload 8
aload 9
aload 10
aload 11
2: invokespecial sun.security.tools.jarsigner.SignatureFile$Block.<init>:(Lsun/security/tools/jarsigner/SignatureFile;Ljava/security/PrivateKey;Ljava/lang/String;[Ljava/security/cert/X509Certificate;ZLjava/lang/String;Ljava/security/cert/X509Certificate;Ljava/lang/String;Ljava/lang/String;Lcom/sun/jarsigner/ContentSigner;[Ljava/lang/String;Ljava/util/zip/ZipFile;)V
areturn
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/tools/jarsigner/SignatureFile;
0 3 1 privateKey Ljava/security/PrivateKey;
0 3 2 sigalg Ljava/lang/String;
0 3 3 certChain [Ljava/security/cert/X509Certificate;
0 3 4 externalSF Z
0 3 5 tsaUrl Ljava/lang/String;
0 3 6 tsaCert Ljava/security/cert/X509Certificate;
0 3 7 tSAPolicyID Ljava/lang/String;
0 3 8 tSADigestAlg Ljava/lang/String;
0 3 9 signingMechanism Lcom/sun/jarsigner/ContentSigner;
0 3 10 args [Ljava/lang/String;
0 3 11 zipFile Ljava/util/zip/ZipFile;
Exceptions:
throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, java.security.SignatureException, java.security.cert.CertificateException
MethodParameters:
Name Flags
privateKey
sigalg
certChain
externalSF
tsaUrl
tsaCert
tSAPolicyID
tSADigestAlg
signingMechanism
args
zipFile
}
SourceFile: "Main.java"
NestMembers:
sun.security.tools.jarsigner.SignatureFile$Block
InnerClasses:
public Encoder = java.util.Base64$Encoder of java.util.Base64
public abstract Entry = java.util.Map$Entry of java.util.Map
public Name = java.util.jar.Attributes$Name of java.util.jar.Attributes
public Block = sun.security.tools.jarsigner.SignatureFile$Block of sun.security.tools.jarsigner.SignatureFile
public Entry = sun.security.util.ManifestDigester$Entry of sun.security.util.ManifestDigester