public abstract class org.bouncycastle.asn1.ASN1OctetString extends org.bouncycastle.asn1.ASN1Primitive implements org.bouncycastle.asn1.ASN1OctetStringParser
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.asn1.ASN1OctetString
super_class: org.bouncycastle.asn1.ASN1Primitive
{
byte[] string;
descriptor: [B
flags: (0x0000)
public static org.bouncycastle.asn1.ASN1OctetString getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean);
descriptor: (Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/ASN1OctetString;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1TaggedObject.getObject:()Lorg/bouncycastle/asn1/ASN1Primitive;
astore 2
start local 2 1: iload 1
ifne 2
aload 2
instanceof org.bouncycastle.asn1.ASN1OctetString
ifeq 3
2: StackMap locals: org.bouncycastle.asn1.ASN1Primitive
StackMap stack:
aload 2
invokestatic org.bouncycastle.asn1.ASN1OctetString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
areturn
3: StackMap locals:
StackMap stack:
aload 2
invokestatic org.bouncycastle.asn1.ASN1Sequence.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Sequence;
invokestatic org.bouncycastle.asn1.BEROctetString.fromSequence:(Lorg/bouncycastle/asn1/ASN1Sequence;)Lorg/bouncycastle/asn1/BEROctetString;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 obj Lorg/bouncycastle/asn1/ASN1TaggedObject;
0 4 1 explicit Z
1 4 2 o Lorg/bouncycastle/asn1/ASN1Primitive;
MethodParameters:
Name Flags
obj
explicit
public static org.bouncycastle.asn1.ASN1OctetString getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
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.ASN1OctetString
ifeq 2
1: StackMap locals:
StackMap stack:
aload 0
checkcast org.bouncycastle.asn1.ASN1OctetString
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.ASN1OctetString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
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 OCTET STRING 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:
aload 0
instanceof org.bouncycastle.asn1.ASN1Encodable
ifeq 11
8: aload 0
checkcast org.bouncycastle.asn1.ASN1Encodable
invokeinterface org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
astore 1
start local 1 9: aload 1
instanceof org.bouncycastle.asn1.ASN1OctetString
ifeq 11
10: aload 1
checkcast org.bouncycastle.asn1.ASN1OctetString
areturn
end local 1 11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "illegal 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 12 0 obj Ljava/lang/Object;
6 7 1 e Ljava/io/IOException;
9 11 1 primitive Lorg/bouncycastle/asn1/ASN1Primitive;
Exception table:
from to target type
3 4 5 Class java.io.IOException
MethodParameters:
Name Flags
obj
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
invokespecial org.bouncycastle.asn1.ASN1Primitive.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "string cannot be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.asn1.ASN1OctetString byte[]
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.asn1.ASN1OctetString.string:[B
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
0 5 1 string [B
MethodParameters:
Name Flags
string
public java.io.InputStream getOctetStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
public org.bouncycastle.asn1.ASN1OctetStringParser parser();
descriptor: ()Lorg/bouncycastle/asn1/ASN1OctetStringParser;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
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.ASN1OctetString.string:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
invokestatic org.bouncycastle.util.Arrays.hashCode:([B)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
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.ASN1OctetString
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.asn1.ASN1OctetString
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
aload 2
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
0 4 1 o Lorg/bouncycastle/asn1/ASN1Primitive;
3 4 2 other Lorg/bouncycastle/asn1/ASN1OctetString;
MethodParameters:
Name Flags
o
public org.bouncycastle.asn1.ASN1Primitive getLoadedObject();
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.ASN1OctetString.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
org.bouncycastle.asn1.ASN1Primitive toDERObject();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.DEROctetString
dup
aload 0
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
org.bouncycastle.asn1.ASN1Primitive toDLObject();
descriptor: ()Lorg/bouncycastle/asn1/ASN1Primitive;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.DEROctetString
dup
aload 0
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
abstract void encode(org.bouncycastle.asn1.ASN1OutputStream);
descriptor: (Lorg/bouncycastle/asn1/ASN1OutputStream;)V
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
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: new java.lang.StringBuilder
dup
ldc "#"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.bouncycastle.asn1.ASN1OctetString.string:[B
invokestatic org.bouncycastle.util.encoders.Hex.encode:([B)[B
invokestatic org.bouncycastle.util.Strings.fromByteArray:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/ASN1OctetString;
}
SourceFile: "ASN1OctetString.java"