public class sun.security.x509.BasicConstraintsExtension extends sun.security.x509.Extension implements sun.security.x509.CertAttrSet<java.lang.String>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.x509.BasicConstraintsExtension
super_class: sun.security.x509.Extension
{
public static final java.lang.String IDENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "x509.info.extensions.BasicConstraints"
public static final java.lang.String NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "BasicConstraints"
public static final java.lang.String IS_CA;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "is_ca"
public static final java.lang.String PATH_LEN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "path_len"
private boolean ca;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int pathLen;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void encodeThis();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 1
start local 1 1: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 2: aload 0
getfield sun.security.x509.BasicConstraintsExtension.ca:Z
ifeq 6
3: aload 2
aload 0
getfield sun.security.x509.BasicConstraintsExtension.ca:Z
invokevirtual sun.security.util.DerOutputStream.putBoolean:(Z)V
4: aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
iflt 6
5: aload 2
aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
invokevirtual sun.security.util.DerOutputStream.putInteger:(I)V
6: StackMap locals: sun.security.util.DerOutputStream sun.security.util.DerOutputStream
StackMap stack:
aload 1
bipush 48
aload 2
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
7: aload 0
aload 1
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.x509.BasicConstraintsExtension.extensionValue:[B
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/x509/BasicConstraintsExtension;
1 9 1 out Lsun/security/util/DerOutputStream;
2 9 2 tmp Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
public void <init>(boolean, int);
descriptor: (ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
iload 1
iload 2
invokespecial sun.security.x509.BasicConstraintsExtension.<init>:(Ljava/lang/Boolean;ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/x509/BasicConstraintsExtension;
0 2 1 ca Z
0 2 2 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ca
len
public void <init>(java.lang.Boolean, boolean, int);
descriptor: (Ljava/lang/Boolean;ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial sun.security.x509.Extension.<init>:()V
1: aload 0
iconst_0
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
2: aload 0
iconst_m1
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
3: aload 0
iload 2
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
4: aload 0
iload 3
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
5: aload 0
getstatic sun.security.x509.PKIXExtensions.BasicConstraints_Id:Lsun/security/util/ObjectIdentifier;
putfield sun.security.x509.BasicConstraintsExtension.extensionId:Lsun/security/util/ObjectIdentifier;
6: aload 0
aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.security.x509.BasicConstraintsExtension.critical:Z
7: aload 0
invokevirtual sun.security.x509.BasicConstraintsExtension.encodeThis:()V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/x509/BasicConstraintsExtension;
0 9 1 critical Ljava/lang/Boolean;
0 9 2 ca Z
0 9 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
critical
ca
len
public void <init>(java.lang.Boolean, java.lang.Object);
descriptor: (Ljava/lang/Boolean;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.x509.Extension.<init>:()V
1: aload 0
iconst_0
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
2: aload 0
iconst_m1
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
3: aload 0
getstatic sun.security.x509.PKIXExtensions.BasicConstraints_Id:Lsun/security/util/ObjectIdentifier;
putfield sun.security.x509.BasicConstraintsExtension.extensionId:Lsun/security/util/ObjectIdentifier;
4: aload 0
aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.security.x509.BasicConstraintsExtension.critical:Z
5: aload 0
aload 2
checkcast byte[]
putfield sun.security.x509.BasicConstraintsExtension.extensionValue:[B
6: new sun.security.util.DerValue
dup
aload 0
getfield sun.security.x509.BasicConstraintsExtension.extensionValue:[B
invokespecial sun.security.util.DerValue.<init>:([B)V
astore 3
start local 3 7: aload 3
getfield sun.security.util.DerValue.tag:B
bipush 48
if_icmpeq 9
8: new java.io.IOException
dup
ldc "Invalid encoding of BasicConstraints"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: sun.security.x509.BasicConstraintsExtension java.lang.Boolean java.lang.Object sun.security.util.DerValue
StackMap stack:
aload 3
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
ifnull 10
aload 3
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 11
10: StackMap locals:
StackMap stack:
return
11: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 4
start local 4 12: aload 4
getfield sun.security.util.DerValue.tag:B
iconst_1
if_icmpeq 14
13: return
14: StackMap locals: sun.security.util.DerValue
StackMap stack:
aload 0
aload 4
invokevirtual sun.security.util.DerValue.getBoolean:()Z
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
15: aload 3
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifne 18
16: aload 0
ldc 2147483647
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
17: return
18: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
astore 4
19: aload 4
getfield sun.security.util.DerValue.tag:B
iconst_2
if_icmpeq 21
20: new java.io.IOException
dup
ldc "Invalid encoding of BasicConstraints"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual sun.security.util.DerValue.getInteger:()I
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
22: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/security/x509/BasicConstraintsExtension;
0 23 1 critical Ljava/lang/Boolean;
0 23 2 value Ljava/lang/Object;
7 23 3 val Lsun/security/util/DerValue;
12 23 4 opt Lsun/security/util/DerValue;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
critical
value
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
ifge 3
1: ldc " undefined"
astore 1
start local 1 2: goto 7
end local 1 StackMap locals:
StackMap stack:
3: aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
ldc 2147483647
if_icmpne 6
4: ldc " no limit"
astore 1
start local 1 5: goto 7
end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
astore 1
start local 1 7: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokespecial sun.security.x509.Extension.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: ldc "BasicConstraints:[\n CA:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.x509.BasicConstraintsExtension.ca:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
9: ldc "\n PathLen:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc "\n]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/x509/BasicConstraintsExtension;
2 3 1 pathLenAsString Ljava/lang/String;
5 6 1 pathLenAsString Ljava/lang/String;
7 12 1 pathLenAsString Ljava/lang/String;
public void encode(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 1: aload 0
getfield sun.security.x509.BasicConstraintsExtension.extensionValue:[B
ifnonnull 8
2: aload 0
getstatic sun.security.x509.PKIXExtensions.BasicConstraints_Id:Lsun/security/util/ObjectIdentifier;
putfield sun.security.x509.BasicConstraintsExtension.extensionId:Lsun/security/util/ObjectIdentifier;
3: aload 0
getfield sun.security.x509.BasicConstraintsExtension.ca:Z
ifeq 6
4: aload 0
iconst_1
putfield sun.security.x509.BasicConstraintsExtension.critical:Z
5: goto 7
6: StackMap locals: sun.security.util.DerOutputStream
StackMap stack:
aload 0
iconst_0
putfield sun.security.x509.BasicConstraintsExtension.critical:Z
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.x509.BasicConstraintsExtension.encodeThis:()V
8: StackMap locals:
StackMap stack:
aload 0
aload 2
invokespecial sun.security.x509.Extension.encode:(Lsun/security/util/DerOutputStream;)V
9: aload 1
aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
invokevirtual java.io.OutputStream.write:([B)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/x509/BasicConstraintsExtension;
0 11 1 out Ljava/io/OutputStream;
1 11 2 tmp Lsun/security/util/DerOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public void set(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "is_ca"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
1: aload 2
instanceof java.lang.Boolean
ifne 3
2: new java.io.IOException
dup
ldc "Attribute value should be of type Boolean."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 2
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
4: goto 11
StackMap locals:
StackMap stack:
5: aload 1
ldc "path_len"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 10
6: aload 2
instanceof java.lang.Integer
ifne 8
7: new java.io.IOException
dup
ldc "Attribute value should be of type Integer."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
aload 2
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
9: goto 11
10: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Attribute name not recognized by CertAttrSet:BasicConstraints."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.x509.BasicConstraintsExtension.encodeThis:()V
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/x509/BasicConstraintsExtension;
0 13 1 name Ljava/lang/String;
0 13 2 obj Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
obj
public java.lang.Object get(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "is_ca"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
getfield sun.security.x509.BasicConstraintsExtension.ca:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "path_len"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
getfield sun.security.x509.BasicConstraintsExtension.pathLen:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
4: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Attribute name not recognized by CertAttrSet:BasicConstraints."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/x509/BasicConstraintsExtension;
0 5 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public void delete(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "is_ca"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
1: aload 0
iconst_0
putfield sun.security.x509.BasicConstraintsExtension.ca:Z
2: goto 7
StackMap locals:
StackMap stack:
3: aload 1
ldc "path_len"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
4: aload 0
iconst_m1
putfield sun.security.x509.BasicConstraintsExtension.pathLen:I
5: goto 7
6: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Attribute name not recognized by CertAttrSet:BasicConstraints."
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.x509.BasicConstraintsExtension.encodeThis:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/security/x509/BasicConstraintsExtension;
0 9 1 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public java.util.Enumeration<java.lang.String> getElements();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new sun.security.x509.AttributeNameEnumeration
dup
invokespecial sun.security.x509.AttributeNameEnumeration.<init>:()V
astore 1
start local 1 1: aload 1
ldc "is_ca"
invokevirtual sun.security.x509.AttributeNameEnumeration.addElement:(Ljava/lang/Object;)V
2: aload 1
ldc "path_len"
invokevirtual sun.security.x509.AttributeNameEnumeration.addElement:(Ljava/lang/Object;)V
3: aload 1
invokevirtual sun.security.x509.AttributeNameEnumeration.elements:()Ljava/util/Enumeration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/x509/BasicConstraintsExtension;
1 4 1 elements Lsun/security/x509/AttributeNameEnumeration;
Signature: ()Ljava/util/Enumeration<Ljava/lang/String;>;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "BasicConstraints"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/x509/BasicConstraintsExtension;
}
Signature: Lsun/security/x509/Extension;Lsun/security/x509/CertAttrSet<Ljava/lang/String;>;
SourceFile: "BasicConstraintsExtension.java"