public class org.bouncycastle.asn1.cms.CMSAlgorithmProtection extends org.bouncycastle.asn1.ASN1Object
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.cms.CMSAlgorithmProtection
super_class: org.bouncycastle.asn1.ASN1Object
{
public static final int SIGNATURE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int MAC;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private final org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlgorithm;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.bouncycastle.asn1.x509.AlgorithmIdentifier, int, org.bouncycastle.asn1.x509.AlgorithmIdentifier);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;ILorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 1
ifnull 2
aload 3
ifnonnull 3
2: StackMap locals: org.bouncycastle.asn1.cms.CMSAlgorithmProtection org.bouncycastle.asn1.x509.AlgorithmIdentifier int org.bouncycastle.asn1.x509.AlgorithmIdentifier
StackMap stack:
new java.lang.NullPointerException
dup
ldc "AlgorithmIdentifiers cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.digestAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
4: iload 2
iconst_1
if_icmpne 8
5: aload 0
aload 3
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
6: aload 0
aconst_null
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
7: goto 13
8: StackMap locals:
StackMap stack:
iload 2
iconst_2
if_icmpne 12
9: aload 0
aconst_null
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
10: aload 0
aload 3
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
11: goto 13
12: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
0 14 1 digestAlgorithm Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 14 2 type I
0 14 3 algorithmIdentifier Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
MethodParameters:
Name Flags
digestAlgorithm
type
algorithmIdentifier
private void <init>(org.bouncycastle.asn1.ASN1Sequence);
descriptor: (Lorg/bouncycastle/asn1/ASN1Sequence;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.size:()I
iconst_2
if_icmpeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "Sequence wrong size: One of signatureAlgorithm or macAlgorithm must be present"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.asn1.cms.CMSAlgorithmProtection org.bouncycastle.asn1.ASN1Sequence
StackMap stack:
aload 0
aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.digestAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
4: aload 1
iconst_1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1TaggedObject.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1TaggedObject;
astore 2
start local 2 5: aload 2
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getTagNo:()I
iconst_1
if_icmpne 9
6: aload 0
aload 2
iconst_0
invokestatic org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance:(Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
7: aload 0
aconst_null
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
8: goto 14
9: StackMap locals: org.bouncycastle.asn1.ASN1TaggedObject
StackMap stack:
aload 2
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getTagNo:()I
iconst_2
if_icmpne 13
10: aload 0
aconst_null
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
11: aload 0
aload 2
iconst_0
invokestatic org.bouncycastle.asn1.x509.AlgorithmIdentifier.getInstance:(Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
putfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
12: goto 14
13: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown tag found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getTagNo:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
0 15 1 sequence Lorg/bouncycastle/asn1/ASN1Sequence;
5 15 2 tagged Lorg/bouncycastle/asn1/ASN1TaggedObject;
MethodParameters:
Name Flags
sequence
public static org.bouncycastle.asn1.cms.CMSAlgorithmProtection getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.asn1.cms.CMSAlgorithmProtection
ifeq 2
1: aload 0
checkcast org.bouncycastle.asn1.cms.CMSAlgorithmProtection
areturn
2: StackMap locals:
StackMap stack:
aload 0
ifnull 4
3: new org.bouncycastle.asn1.cms.CMSAlgorithmProtection
dup
aload 0
invokestatic org.bouncycastle.asn1.ASN1Sequence.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Sequence;
invokespecial org.bouncycastle.asn1.cms.CMSAlgorithmProtection.<init>:(Lorg/bouncycastle/asn1/ASN1Sequence;)V
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm();
descriptor: ()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.digestAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMacAlgorithm();
descriptor: ()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm();
descriptor: ()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.digestAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
2: aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
ifnull 4
3: aload 1
new org.bouncycastle.asn1.DERTaggedObject
dup
iconst_0
iconst_1
aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.signatureAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokespecial org.bouncycastle.asn1.DERTaggedObject.<init>:(ZILorg/bouncycastle/asn1/ASN1Encodable;)V
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
4: StackMap locals: org.bouncycastle.asn1.ASN1EncodableVector
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
ifnull 6
5: aload 1
new org.bouncycastle.asn1.DERTaggedObject
dup
iconst_0
iconst_2
aload 0
getfield org.bouncycastle.asn1.cms.CMSAlgorithmProtection.macAlgorithm:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokespecial org.bouncycastle.asn1.DERTaggedObject.<init>:(ZILorg/bouncycastle/asn1/ASN1Encodable;)V
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
6: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.DERSequence
dup
aload 1
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/asn1/cms/CMSAlgorithmProtection;
1 7 1 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
}
SourceFile: "CMSAlgorithmProtection.java"