public abstract class org.bouncycastle.asn1.ASN1ApplicationSpecific extends org.bouncycastle.asn1.ASN1Primitive
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.asn1.ASN1ApplicationSpecific
super_class: org.bouncycastle.asn1.ASN1Primitive
{
protected final boolean isConstructed;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final int tag;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final byte[] octets;
descriptor: [B
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
void <init>(boolean, int, byte[]);
descriptor: (ZI[B)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Primitive.<init>:()V
1: aload 0
iload 1
putfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
2: aload 0
iload 2
putfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
3: aload 0
aload 3
invokestatic org.bouncycastle.util.Arrays.clone:([B)[B
putfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
0 5 1 isConstructed Z
0 5 2 tag I
0 5 3 octets [B
MethodParameters:
Name Flags
isConstructed
tag
octets
public static org.bouncycastle.asn1.ASN1ApplicationSpecific getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
instanceof org.bouncycastle.asn1.ASN1ApplicationSpecific
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
checkcast org.bouncycastle.asn1.ASN1ApplicationSpecific
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof byte[]
ifeq 7
3: aload 0
checkcast byte[]
invokestatic org.bouncycastle.asn1.ASN1Primitive.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Primitive;
invokestatic org.bouncycastle.asn1.ASN1ApplicationSpecific.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
4: areturn
5: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Failed to construct object from byte[]: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
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
end local 1 7: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "unknown object in getInstance: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
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
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 obj Ljava/lang/Object;
6 7 1 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
obj
protected static int (byte[]);
descriptor: ([B)I
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
iconst_1
baload
sipush 255
iand
istore 1
start local 1 1: iload 1
sipush 128
if_icmpne 3
2: iconst_2
ireturn
3: StackMap locals: int
StackMap stack:
iload 1
bipush 127
if_icmple 8
4: iload 1
bipush 127
iand
istore 2
start local 2 5: iload 2
iconst_4
if_icmple 7
6: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "DER length more than 4 bytes: "
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.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: int
StackMap stack:
iload 2
iconst_2
iadd
ireturn
end local 2 8: StackMap locals:
StackMap stack:
iconst_2
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 data [B
1 9 1 length I
5 8 2 size I
MethodParameters:
Name Flags
data
public boolean isConstructed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
public byte[] getContents();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
invokestatic org.bouncycastle.util.Arrays.clone:([B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
public int getApplicationTag();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
public org.bouncycastle.asn1.ASN1Primitive getObject();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1ApplicationSpecific.getContents:()[B
invokestatic org.bouncycastle.asn1.ASN1Primitive.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Primitive;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
Exceptions:
throws java.io.IOException
public org.bouncycastle.asn1.ASN1Primitive getObject(int);
descriptor: (I)Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: iload 1
bipush 31
if_icmplt 2
1: new java.io.IOException
dup
ldc "unsupported tag number"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ApplicationSpecific.getEncoded:()[B
astore 2
start local 2 3: aload 0
iload 1
aload 2
invokevirtual org.bouncycastle.asn1.ASN1ApplicationSpecific.replaceTagNumber:(I[B)[B
astore 3
start local 3 4: aload 2
iconst_0
baload
bipush 32
iand
ifeq 6
5: aload 3
iconst_0
dup2
baload
bipush 32
ior
i2b
bastore
6: StackMap locals: byte[] byte[]
StackMap stack:
aload 3
invokestatic org.bouncycastle.asn1.ASN1Primitive.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Primitive;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
0 7 1 derTagNo I
3 7 2 orig [B
4 7 3 tmp [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
derTagNo
int encodedLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
invokestatic org.bouncycastle.asn1.StreamUtil.calculateTagLength:(I)I
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
arraylength
invokestatic org.bouncycastle.asn1.StreamUtil.calculateBodyLength:(I)I
iadd
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
arraylength
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
Exceptions:
throws java.io.IOException
void encode(org.bouncycastle.asn1.ASN1OutputStream);
descriptor: (Lorg/bouncycastle/asn1/ASN1OutputStream;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: bipush 64
istore 2
start local 2 1: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
ifeq 3
2: iload 2
bipush 32
ior
istore 2
3: StackMap locals: int
StackMap stack:
aload 1
iload 2
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.writeEncoded:(II[B)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
0 5 1 out Lorg/bouncycastle/asn1/ASN1OutputStream;
1 5 2 classBits I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
boolean asn1Equals(org.bouncycastle.asn1.ASN1Primitive);
descriptor: (Lorg/bouncycastle/asn1/ASN1Primitive;)Z
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.asn1.ASN1ApplicationSpecific
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.asn1.ASN1ApplicationSpecific
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
aload 2
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
if_icmpne 7
4: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
aload 2
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
if_icmpne 7
5: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
aload 2
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
ifeq 7
6: iconst_1
ireturn
StackMap locals: org.bouncycastle.asn1.ASN1ApplicationSpecific
StackMap stack:
7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
0 8 1 o Lorg/bouncycastle/asn1/ASN1Primitive;
3 8 2 other Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.tag:I
ixor
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
invokestatic org.bouncycastle.util.Arrays.hashCode:([B)I
ixor
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
private byte[] replaceTagNumber(int, byte[]);
descriptor: (I[B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
iconst_0
baload
bipush 31
iand
istore 3
start local 3 1: iconst_1
istore 4
start local 4 2: iload 3
bipush 31
if_icmpne 8
3: aload 2
iload 4
iinc 4 1
baload
sipush 255
iand
istore 5
start local 5 4: iload 5
bipush 127
iand
ifne 7
5: new java.io.IOException
dup
ldc "corrupted stream - invalid high tag number found"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int int int
StackMap stack:
aload 2
iload 4
iinc 4 1
baload
sipush 255
iand
istore 5
7: StackMap locals:
StackMap stack:
iload 5
sipush 128
iand
ifne 6
end local 5 8: StackMap locals:
StackMap stack:
aload 2
arraylength
iload 4
isub
iconst_1
iadd
newarray 8
astore 5
start local 5 9: aload 2
iload 4
aload 5
iconst_1
aload 5
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 5
iconst_0
iload 1
i2b
bastore
11: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
0 12 1 newTag I
0 12 2 input [B
1 12 3 tagNo I
2 12 4 index I
4 8 5 b I
9 12 5 tmp [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
newTag
input
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 1
ldc "["
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: aload 0
invokevirtual org.bouncycastle.asn1.ASN1ApplicationSpecific.isConstructed:()Z
ifeq 4
3: aload 1
ldc "CONSTRUCTED "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
4: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 1
ldc "APPLICATION "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: aload 1
aload 0
invokevirtual org.bouncycastle.asn1.ASN1ApplicationSpecific.getApplicationTag:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
6: aload 1
ldc "]"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
ifnull 11
8: aload 1
ldc " #"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
9: aload 1
aload 0
getfield org.bouncycastle.asn1.ASN1ApplicationSpecific.octets:[B
invokestatic org.bouncycastle.util.encoders.Hex.toHexString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: goto 12
11: StackMap locals:
StackMap stack:
aload 1
ldc " #null"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
12: StackMap locals:
StackMap stack:
aload 1
ldc " "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
13: aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/bouncycastle/asn1/ASN1ApplicationSpecific;
1 14 1 sb Ljava/lang/StringBuffer;
}
SourceFile: "ASN1ApplicationSpecific.java"