class org.bouncycastle.mime.smime.SMimeUtils
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.mime.smime.SMimeUtils
super_class: java.lang.Object
{
private static final java.util.Map RFC5751_MICALGS;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map RFC3851_MICALGS;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map STANDARD_MICALGS;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map forMic;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] nl;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=0
0: iconst_2
newarray 8
putstatic org.bouncycastle.mime.smime.SMimeUtils.nl:[B
1: getstatic org.bouncycastle.mime.smime.SMimeUtils.nl:[B
iconst_0
bipush 13
bastore
2: getstatic org.bouncycastle.mime.smime.SMimeUtils.nl:[B
iconst_1
bipush 10
bastore
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 0
start local 0 4: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.MD5:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "md5"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha-1"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA224:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha-224"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA256:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha-256"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA384:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha-384"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA512:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha-512"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-94"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411_2012_256:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-2012-256"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 0
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411_2012_512:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-2012-512"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putstatic org.bouncycastle.mime.smime.SMimeUtils.RFC5751_MICALGS:Ljava/util/Map;
14: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 15: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.MD5:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "md5"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha1"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA224:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha224"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA256:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha256"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA384:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha384"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.SHA512:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "sha512"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-94"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
22: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411_2012_256:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-2012-256"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
23: aload 1
getstatic org.bouncycastle.cms.CMSAlgorithm.GOST3411_2012_512:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
ldc "gostr3411-2012-512"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: aload 1
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putstatic org.bouncycastle.mime.smime.SMimeUtils.RFC3851_MICALGS:Ljava/util/Map;
25: getstatic org.bouncycastle.mime.smime.SMimeUtils.RFC5751_MICALGS:Ljava/util/Map;
putstatic org.bouncycastle.mime.smime.SMimeUtils.STANDARD_MICALGS:Ljava/util/Map;
26: new java.util.TreeMap
dup
getstatic java.lang.String.CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
invokespecial java.util.TreeMap.<init>:(Ljava/util/Comparator;)V
astore 2
start local 2 27: getstatic org.bouncycastle.mime.smime.SMimeUtils.STANDARD_MICALGS:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 28: goto 31
29: StackMap locals: java.util.Map java.util.Map java.util.Map java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 30: aload 2
getstatic org.bouncycastle.mime.smime.SMimeUtils.STANDARD_MICALGS:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aload 4
checkcast org.bouncycastle.asn1.ASN1ObjectIdentifier
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 31: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
end local 3 32: getstatic org.bouncycastle.mime.smime.SMimeUtils.RFC3851_MICALGS:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 33: goto 36
34: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 35: aload 2
getstatic org.bouncycastle.mime.smime.SMimeUtils.RFC3851_MICALGS:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
aload 4
checkcast org.bouncycastle.asn1.ASN1ObjectIdentifier
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 36: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 34
end local 3 37: aload 2
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putstatic org.bouncycastle.mime.smime.SMimeUtils.forMic:Ljava/util/Map;
end local 2 end local 1 end local 0 38: return
LocalVariableTable:
Start End Slot Name Signature
4 38 0 stdMicAlgs Ljava/util/Map;
15 38 1 oldMicAlgs Ljava/util/Map;
27 38 2 mic Ljava/util/Map<Ljava/lang/String;Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;>;
28 32 3 it Ljava/util/Iterator;
30 31 4 key Ljava/lang/Object;
33 37 3 it Ljava/util/Iterator;
35 36 4 key Ljava/lang/Object;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/mime/smime/SMimeUtils;
static java.lang.String lessQuotes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpgt 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 34
if_icmpne 4
aload 0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 34
if_icmpne 4
3: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 in Ljava/lang/String;
MethodParameters:
Name Flags
in
static java.lang.String getParameter(java.lang.String, java.util.List<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/List;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 3
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
4: aload 3
areturn
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 2 6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 startsWith Ljava/lang/String;
0 7 1 parameters Ljava/util/List<Ljava/lang/String;>;
1 6 2 paramIt Ljava/util/Iterator<Ljava/lang/String;>;
3 5 3 param Ljava/lang/String;
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;)Ljava/lang/String;
MethodParameters:
Name Flags
startsWith
parameters
static org.bouncycastle.asn1.ASN1ObjectIdentifier getDigestOID(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic org.bouncycastle.mime.smime.SMimeUtils.forMic:Ljava/util/Map;
aload 0
invokestatic org.bouncycastle.util.Strings.toLowerCase:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bouncycastle.asn1.ASN1ObjectIdentifier
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unknown micalg passed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.asn1.ASN1ObjectIdentifier
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 alg Ljava/lang/String;
1 4 1 oid Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
MethodParameters:
Name Flags
alg
static java.io.OutputStream createUnclosable(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/io/OutputStream;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.mime.smime.SMimeUtils$1
dup
aload 0
invokespecial org.bouncycastle.mime.smime.SMimeUtils$1.<init>:(Ljava/io/OutputStream;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 destination Ljava/io/OutputStream;
MethodParameters:
Name Flags
destination
}
SourceFile: "SMimeUtils.java"
NestMembers:
org.bouncycastle.mime.smime.SMimeUtils$1
InnerClasses:
org.bouncycastle.mime.smime.SMimeUtils$1