public class org.bouncycastle.cert.path.validations.BasicConstraintsValidation implements org.bouncycastle.cert.path.CertPathValidation
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.path.validations.BasicConstraintsValidation
super_class: java.lang.Object
{
private boolean isMandatory;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.x509.BasicConstraints bc;
descriptor: Lorg/bouncycastle/asn1/x509/BasicConstraints;
flags: (0x0002) ACC_PRIVATE
private int pathLengthRemaining;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.math.BigInteger maxPathLength;
descriptor: Ljava/math/BigInteger;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial org.bouncycastle.cert.path.validations.BasicConstraintsValidation.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
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 java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.isMandatory:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
0 3 1 isMandatory Z
MethodParameters:
Name Flags
isMandatory
public void validate(org.bouncycastle.cert.path.CertPathValidationContext, org.bouncycastle.cert.X509CertificateHolder);
descriptor: (Lorg/bouncycastle/cert/path/CertPathValidationContext;Lorg/bouncycastle/cert/X509CertificateHolder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.maxPathLength:Ljava/math/BigInteger;
ifnull 2
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
ifge 2
1: new org.bouncycastle.cert.path.CertPathValidationException
dup
ldc "BasicConstraints path length exceeded"
invokespecial org.bouncycastle.cert.path.CertPathValidationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.bouncycastle.asn1.x509.Extension.basicConstraints:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.cert.path.CertPathValidationContext.addHandledExtension:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)V
3: aload 2
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getExtensions:()Lorg/bouncycastle/asn1/x509/Extensions;
invokestatic org.bouncycastle.asn1.x509.BasicConstraints.fromExtensions:(Lorg/bouncycastle/asn1/x509/Extensions;)Lorg/bouncycastle/asn1/x509/BasicConstraints;
astore 3
start local 3 4: aload 3
ifnull 20
5: aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
ifnull 14
6: aload 3
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.isCA:()Z
ifeq 22
7: aload 3
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.getPathLenConstraint:()Ljava/math/BigInteger;
astore 4
start local 4 8: aload 4
ifnull 22
9: aload 4
invokevirtual java.math.BigInteger.intValue:()I
istore 5
start local 5 10: iload 5
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
if_icmpge 22
11: aload 0
iload 5
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
12: aload 0
aload 3
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
end local 5 end local 4 13: goto 22
14: StackMap locals: org.bouncycastle.asn1.x509.BasicConstraints
StackMap stack:
aload 0
aload 3
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
15: aload 3
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.isCA:()Z
ifeq 22
16: aload 0
aload 3
invokevirtual org.bouncycastle.asn1.x509.BasicConstraints.getPathLenConstraint:()Ljava/math/BigInteger;
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.maxPathLength:Ljava/math/BigInteger;
17: aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.maxPathLength:Ljava/math/BigInteger;
ifnull 22
18: aload 0
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.maxPathLength:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.intValue:()I
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
19: goto 22
20: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
ifnull 22
21: aload 0
dup
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
iconst_1
isub
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
22: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.isMandatory:Z
ifeq 24
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
ifnonnull 24
23: new org.bouncycastle.cert.path.CertPathValidationException
dup
ldc "BasicConstraints not present in path"
invokespecial org.bouncycastle.cert.path.CertPathValidationException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
0 25 1 context Lorg/bouncycastle/cert/path/CertPathValidationContext;
0 25 2 certificate Lorg/bouncycastle/cert/X509CertificateHolder;
4 25 3 certBC Lorg/bouncycastle/asn1/x509/BasicConstraints;
8 13 4 pathLengthConstraint Ljava/math/BigInteger;
10 13 5 plc I
Exceptions:
throws org.bouncycastle.cert.path.CertPathValidationException
MethodParameters:
Name Flags
context
certificate
public org.bouncycastle.util.Memoable copy();
descriptor: ()Lorg/bouncycastle/util/Memoable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.bouncycastle.cert.path.validations.BasicConstraintsValidation
dup
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.isMandatory:Z
invokespecial org.bouncycastle.cert.path.validations.BasicConstraintsValidation.<init>:(Z)V
astore 1
start local 1 1: aload 1
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
2: aload 1
aload 0
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
1 4 1 v Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
public void reset(org.bouncycastle.util.Memoable);
descriptor: (Lorg/bouncycastle/util/Memoable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.bouncycastle.cert.path.validations.BasicConstraintsValidation
astore 2
start local 2 1: aload 0
aload 2
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.isMandatory:Z
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.isMandatory:Z
2: aload 0
aload 2
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.bc:Lorg/bouncycastle/asn1/x509/BasicConstraints;
3: aload 0
aload 2
getfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
putfield org.bouncycastle.cert.path.validations.BasicConstraintsValidation.pathLengthRemaining:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
0 5 1 other Lorg/bouncycastle/util/Memoable;
1 5 2 v Lorg/bouncycastle/cert/path/validations/BasicConstraintsValidation;
MethodParameters:
Name Flags
other
}
SourceFile: "BasicConstraintsValidation.java"