public class org.bouncycastle.asn1.BEROctetString extends org.bouncycastle.asn1.ASN1OctetString
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.BEROctetString
super_class: org.bouncycastle.asn1.ASN1OctetString
{
private static final int DEFAULT_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private final int chunkSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.bouncycastle.asn1.ASN1OctetString[] octs;
descriptor: [Lorg/bouncycastle/asn1/ASN1OctetString;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static byte[] toBytes(org.bouncycastle.asn1.ASN1OctetString[]);
descriptor: ([Lorg/bouncycastle/asn1/ASN1OctetString;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 11
3: StackMap locals: java.io.ByteArrayOutputStream int
StackMap stack:
aload 0
iload 2
aaload
checkcast org.bouncycastle.asn1.DEROctetString
astore 3
start local 3 4: aload 1
aload 3
invokevirtual org.bouncycastle.asn1.DEROctetString.getOctets:()[B
invokevirtual java.io.ByteArrayOutputStream.write:([B)V
end local 3 5: goto 10
6: StackMap locals:
StackMap stack: java.lang.ClassCastException
pop
7: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
iload 2
aaload
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " found in input should only contain DEROctetString"
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
8: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "exception converting octets "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.IOException.toString:()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 3 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
aload 0
arraylength
if_icmpne 3
end local 2 12: aload 1
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 octs [Lorg/bouncycastle/asn1/ASN1OctetString;
1 13 1 bOut Ljava/io/ByteArrayOutputStream;
2 12 2 i I
4 5 3 o Lorg/bouncycastle/asn1/DEROctetString;
9 10 3 e Ljava/io/IOException;
Exception table:
from to target type
3 5 6 Class java.lang.ClassCastException
3 5 8 Class java.io.IOException
MethodParameters:
Name Flags
octs
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 1000
invokespecial org.bouncycastle.asn1.BEROctetString.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 2 1 string [B
MethodParameters:
Name Flags
string
public void <init>(org.bouncycastle.asn1.ASN1OctetString[]);
descriptor: ([Lorg/bouncycastle/asn1/ASN1OctetString;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 1000
invokespecial org.bouncycastle.asn1.BEROctetString.<init>:([Lorg/bouncycastle/asn1/ASN1OctetString;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 2 1 octs [Lorg/bouncycastle/asn1/ASN1OctetString;
MethodParameters:
Name Flags
octs
public void <init>(byte[], int);
descriptor: ([BI)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
aload 1
aconst_null
iload 2
invokespecial org.bouncycastle.asn1.BEROctetString.<init>:([B[Lorg/bouncycastle/asn1/ASN1OctetString;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 2 1 string [B
0 2 2 chunkSize I
MethodParameters:
Name Flags
string
chunkSize
public void <init>(org.bouncycastle.asn1.ASN1OctetString[], int);
descriptor: ([Lorg/bouncycastle/asn1/ASN1OctetString;I)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
aload 1
invokestatic org.bouncycastle.asn1.BEROctetString.toBytes:([Lorg/bouncycastle/asn1/ASN1OctetString;)[B
aload 1
iload 2
invokespecial org.bouncycastle.asn1.BEROctetString.<init>:([B[Lorg/bouncycastle/asn1/ASN1OctetString;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 2 1 octs [Lorg/bouncycastle/asn1/ASN1OctetString;
0 2 2 chunkSize I
MethodParameters:
Name Flags
octs
chunkSize
private void <init>(byte[], org.bouncycastle.asn1.ASN1OctetString[], int);
descriptor: ([B[Lorg/bouncycastle/asn1/ASN1OctetString;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial org.bouncycastle.asn1.ASN1OctetString.<init>:([B)V
1: aload 0
aload 2
putfield org.bouncycastle.asn1.BEROctetString.octs:[Lorg/bouncycastle/asn1/ASN1OctetString;
2: aload 0
iload 3
putfield org.bouncycastle.asn1.BEROctetString.chunkSize:I
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 4 1 string [B
0 4 2 octs [Lorg/bouncycastle/asn1/ASN1OctetString;
0 4 3 chunkSize I
MethodParameters:
Name Flags
string
octs
chunkSize
public byte[] getOctets();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.BEROctetString.string:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/BEROctetString;
public java.util.Enumeration getObjects();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.BEROctetString.octs:[Lorg/bouncycastle/asn1/ASN1OctetString;
ifnonnull 2
1: aload 0
invokevirtual org.bouncycastle.asn1.BEROctetString.generateOcts:()Ljava/util/Vector;
invokevirtual java.util.Vector.elements:()Ljava/util/Enumeration;
areturn
2: StackMap locals:
StackMap stack:
new org.bouncycastle.asn1.BEROctetString$1
dup
aload 0
invokespecial org.bouncycastle.asn1.BEROctetString$1.<init>:(Lorg/bouncycastle/asn1/BEROctetString;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/BEROctetString;
private java.util.Vector generateOcts();
descriptor: ()Ljava/util/Vector;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=1
start local 0 0: new java.util.Vector
dup
invokespecial java.util.Vector.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 11
3: StackMap locals: java.util.Vector int
StackMap stack:
iload 2
aload 0
getfield org.bouncycastle.asn1.BEROctetString.chunkSize:I
iadd
aload 0
getfield org.bouncycastle.asn1.BEROctetString.string:[B
arraylength
if_icmple 6
4: aload 0
getfield org.bouncycastle.asn1.BEROctetString.string:[B
arraylength
istore 3
start local 3 5: goto 7
end local 3 6: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield org.bouncycastle.asn1.BEROctetString.chunkSize:I
iadd
istore 3
start local 3 7: StackMap locals: int
StackMap stack:
iload 3
iload 2
isub
newarray 8
astore 4
start local 4 8: aload 0
getfield org.bouncycastle.asn1.BEROctetString.string:[B
iload 2
aload 4
iconst_0
aload 4
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 1
new org.bouncycastle.asn1.DEROctetString
dup
aload 4
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 4 end local 3 10: iload 2
aload 0
getfield org.bouncycastle.asn1.BEROctetString.chunkSize:I
iadd
istore 2
StackMap locals:
StackMap stack:
11: iload 2
aload 0
getfield org.bouncycastle.asn1.BEROctetString.string:[B
arraylength
if_icmplt 3
end local 2 12: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/asn1/BEROctetString;
1 13 1 vec Ljava/util/Vector;
2 12 2 i I
5 6 3 end I
7 10 3 end I
8 10 4 nStr [B
boolean isConstructed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/BEROctetString;
int encodedLength();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual org.bouncycastle.asn1.BEROctetString.getObjects:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 4
3: StackMap locals: int java.util.Enumeration
StackMap stack:
iload 1
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast org.bouncycastle.asn1.ASN1Encodable
invokeinterface org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokevirtual org.bouncycastle.asn1.ASN1Primitive.encodedLength:()I
iadd
istore 1
4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
end local 2 5: iconst_2
iload 1
iadd
iconst_2
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/asn1/BEROctetString;
1 6 1 length I
2 5 2 e Ljava/util/Enumeration;
Exceptions:
throws java.io.IOException
public void encode(org.bouncycastle.asn1.ASN1OutputStream);
descriptor: (Lorg/bouncycastle/asn1/ASN1OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
bipush 36
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.write:(I)V
1: aload 1
sipush 128
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.write:(I)V
2: aload 0
invokevirtual org.bouncycastle.asn1.BEROctetString.getObjects:()Ljava/util/Enumeration;
astore 2
start local 2 3: goto 5
4: StackMap locals: java.util.Enumeration
StackMap stack:
aload 1
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast org.bouncycastle.asn1.ASN1Encodable
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.writeObject:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
end local 2 6: aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.write:(I)V
7: aload 1
iconst_0
invokevirtual org.bouncycastle.asn1.ASN1OutputStream.write:(I)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/bouncycastle/asn1/BEROctetString;
0 9 1 out Lorg/bouncycastle/asn1/ASN1OutputStream;
3 6 2 e Ljava/util/Enumeration;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
static org.bouncycastle.asn1.BEROctetString fromSequence(org.bouncycastle.asn1.ASN1Sequence);
descriptor: (Lorg/bouncycastle/asn1/ASN1Sequence;)Lorg/bouncycastle/asn1/BEROctetString;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.size:()I
anewarray org.bouncycastle.asn1.ASN1OctetString
astore 1
start local 1 1: aload 0
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjects:()Ljava/util/Enumeration;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 5
4: StackMap locals: org.bouncycastle.asn1.ASN1OctetString[] java.util.Enumeration int
StackMap stack:
aload 1
iload 3
iinc 3 1
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast org.bouncycastle.asn1.ASN1OctetString
aastore
5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
6: new org.bouncycastle.asn1.BEROctetString
dup
aload 1
invokespecial org.bouncycastle.asn1.BEROctetString.<init>:([Lorg/bouncycastle/asn1/ASN1OctetString;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 seq Lorg/bouncycastle/asn1/ASN1Sequence;
1 7 1 v [Lorg/bouncycastle/asn1/ASN1OctetString;
2 7 2 e Ljava/util/Enumeration;
3 7 3 index I
MethodParameters:
Name Flags
seq
}
SourceFile: "BEROctetString.java"
NestMembers:
org.bouncycastle.asn1.BEROctetString$1
InnerClasses:
org.bouncycastle.asn1.BEROctetString$1