public class org.bouncycastle.asn1.x509.BasicConstraints extends org.bouncycastle.asn1.ASN1Object
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.x509.BasicConstraints
super_class: org.bouncycastle.asn1.ASN1Object
{
org.bouncycastle.asn1.ASN1Boolean cA;
descriptor: Lorg/bouncycastle/asn1/ASN1Boolean;
flags: (0x0000)
org.bouncycastle.asn1.ASN1Integer pathLenConstraint;
descriptor: Lorg/bouncycastle/asn1/ASN1Integer;
flags: (0x0000)
public static org.bouncycastle.asn1.x509.BasicConstraints getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean);
descriptor: (Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/x509/BasicConstraints;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic org.bouncycastle.asn1.ASN1Sequence.getInstance:(Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/ASN1Sequence;
invokestatic org.bouncycastle.asn1.x509.BasicConstraints.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Lorg/bouncycastle/asn1/ASN1TaggedObject;
0 1 1 explicit Z
MethodParameters:
Name Flags
obj
explicit
public static org.bouncycastle.asn1.x509.BasicConstraints getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.asn1.x509.BasicConstraints
ifeq 2
1: aload 0
checkcast org.bouncycastle.asn1.x509.BasicConstraints
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.x509.X509Extension
ifeq 4
3: aload 0
checkcast org.bouncycastle.asn1.x509.X509Extension
invokestatic org.bouncycastle.asn1.x509.X509Extension.convertValueToObject:(Lorg/bouncycastle/asn1/x509/X509Extension;)Lorg/bouncycastle/asn1/ASN1Primitive;
invokestatic org.bouncycastle.asn1.x509.BasicConstraints.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
areturn
4: StackMap locals:
StackMap stack:
aload 0
ifnull 6
5: new org.bouncycastle.asn1.x509.BasicConstraints
dup
aload 0
invokestatic org.bouncycastle.asn1.ASN1Sequence.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Sequence;
invokespecial org.bouncycastle.asn1.x509.BasicConstraints.<init>:(Lorg/bouncycastle/asn1/ASN1Sequence;)V
areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static org.bouncycastle.asn1.x509.BasicConstraints fromExtensions(org.bouncycastle.asn1.x509.Extensions);
descriptor: (Lorg/bouncycastle/asn1/x509/Extensions;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bouncycastle.asn1.x509.Extension.basicConstraints:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.x509.Extensions.getExtensionParsedValue:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.x509.BasicConstraints.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 extensions Lorg/bouncycastle/asn1/x509/Extensions;
MethodParameters:
Name Flags
extensions
private void <init>(org.bouncycastle.asn1.ASN1Sequence);
descriptor: (Lorg/bouncycastle/asn1/ASN1Sequence;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 0
iconst_0
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Z)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
2: aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
3: aload 1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.size:()I
ifne 7
4: aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
5: aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
6: goto 17
7: StackMap locals: org.bouncycastle.asn1.x509.BasicConstraints org.bouncycastle.asn1.ASN1Sequence
StackMap stack:
aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
instanceof org.bouncycastle.asn1.ASN1Boolean
ifeq 10
8: aload 0
aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
11: aload 0
aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1Integer.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Integer;
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.size:()I
iconst_1
if_icmple 17
13: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
ifnull 16
14: aload 0
aload 1
iconst_1
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjectAt:(I)Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1Integer.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Integer;
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
15: goto 17
16: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "wrong sequence in constructor"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
0 18 1 seq Lorg/bouncycastle/asn1/ASN1Sequence;
MethodParameters:
Name Flags
seq
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 0
iconst_0
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Z)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
2: aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
3: iload 1
ifeq 6
4: aload 0
iconst_1
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Z)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
5: goto 7
6: StackMap locals: org.bouncycastle.asn1.x509.BasicConstraints int
StackMap stack:
aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
0 9 1 cA Z
MethodParameters:
Name Flags
cA
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Object.<init>:()V
1: aload 0
iconst_0
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Z)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
2: aload 0
aconst_null
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
3: aload 0
iconst_1
invokestatic org.bouncycastle.asn1.ASN1Boolean.getInstance:(Z)Lorg/bouncycastle/asn1/ASN1Boolean;
putfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
4: aload 0
new org.bouncycastle.asn1.ASN1Integer
dup
iload 1
i2l
invokespecial org.bouncycastle.asn1.ASN1Integer.<init>:(J)V
putfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
0 6 1 pathLenConstraint I
MethodParameters:
Name Flags
pathLenConstraint
public boolean isCA();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
ifnull 1
aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
invokevirtual org.bouncycastle.asn1.ASN1Boolean.isTrue:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
public java.math.BigInteger getPathLenConstraint();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
ifnull 2
1: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1Integer.getValue:()Ljava/math/BigInteger;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
ifnull 3
2: aload 1
aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
3: StackMap locals: org.bouncycastle.asn1.ASN1EncodableVector
StackMap stack:
aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
ifnull 5
4: aload 1
aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
5: 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 6 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
1 6 1 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
ifnonnull 4
1: aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.cA:Lorg/bouncycastle/asn1/ASN1Boolean;
ifnonnull 3
2: ldc "BasicConstraints: isCa(false)"
areturn
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "BasicConstraints: isCa("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.isCA:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "BasicConstraints: isCa("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.isCA:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
ldc "), pathLenConstraint = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.bouncycastle.asn1.x509.BasicConstraints.pathLenConstraint:Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1Integer.getValue:()Ljava/math/BigInteger;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/asn1/x509/BasicConstraints;
}
SourceFile: "BasicConstraints.java"