public class org.bouncycastle.util.encoders.Base64
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.util.encoders.Base64
super_class: java.lang.Object
{
private static final org.bouncycastle.util.encoders.Encoder encoder;
descriptor: Lorg/bouncycastle/util/encoders/Encoder;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.bouncycastle.util.encoders.Base64Encoder
dup
invokespecial org.bouncycastle.util.encoders.Base64Encoder.<init>:()V
putstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/encoders/Base64;
public static java.lang.String toBase64String(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic org.bouncycastle.util.encoders.Base64.toBase64String:([BII)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
MethodParameters:
Name Flags
data
public static java.lang.String toBase64String(byte[], int, int);
descriptor: ([BII)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic org.bouncycastle.util.encoders.Base64.encode:([BII)[B
astore 3
start local 3 1: aload 3
invokestatic org.bouncycastle.util.Strings.fromByteArray:([B)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 data [B
0 2 1 off I
0 2 2 length I
1 2 3 encoded [B
MethodParameters:
Name Flags
data
off
length
public static byte[] encode(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic org.bouncycastle.util.encoders.Base64.encode:([BII)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
MethodParameters:
Name Flags
data
public static byte[] encode(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iconst_2
iadd
iconst_3
idiv
iconst_4
imul
istore 3
start local 3 1: new java.io.ByteArrayOutputStream
dup
iload 3
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 4
start local 4 2: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
iload 1
iload 2
aload 4
invokeinterface org.bouncycastle.util.encoders.Encoder.encode:([BIILjava/io/OutputStream;)I
pop
3: goto 6
4: StackMap locals: byte[] int int int java.io.ByteArrayOutputStream
StackMap stack: java.lang.Exception
astore 5
start local 5 5: new org.bouncycastle.util.encoders.EncoderException
dup
new java.lang.StringBuilder
dup
ldc "exception encoding base64 string: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial org.bouncycastle.util.encoders.EncoderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 6: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 data [B
0 7 1 off I
0 7 2 length I
1 7 3 len I
2 7 4 bOut Ljava/io/ByteArrayOutputStream;
5 6 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
data
off
length
public static int encode(byte[], java.io.OutputStream);
descriptor: ([BLjava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
iconst_0
aload 0
arraylength
aload 1
invokeinterface org.bouncycastle.util.encoders.Encoder.encode:([BIILjava/io/OutputStream;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
0 1 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
out
public static int encode(byte[], int, int, java.io.OutputStream);
descriptor: ([BIILjava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
iload 1
iload 2
aload 3
invokeinterface org.bouncycastle.util.encoders.Encoder.encode:([BIILjava/io/OutputStream;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data [B
0 1 1 off I
0 1 2 length I
0 1 3 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
off
length
out
public static byte[] decode(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
arraylength
iconst_4
idiv
iconst_3
imul
istore 1
start local 1 1: new java.io.ByteArrayOutputStream
dup
iload 1
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 2
start local 2 2: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
iconst_0
aload 0
arraylength
aload 2
invokeinterface org.bouncycastle.util.encoders.Encoder.decode:([BIILjava/io/OutputStream;)I
pop
3: goto 6
4: StackMap locals: byte[] int java.io.ByteArrayOutputStream
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new org.bouncycastle.util.encoders.DecoderException
dup
new java.lang.StringBuilder
dup
ldc "unable to decode base64 data: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.util.encoders.DecoderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 data [B
1 7 1 len I
2 7 2 bOut Ljava/io/ByteArrayOutputStream;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
data
public static byte[] decode(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
iconst_4
idiv
iconst_3
imul
istore 1
start local 1 1: new java.io.ByteArrayOutputStream
dup
iload 1
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 2
start local 2 2: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
aload 2
invokeinterface org.bouncycastle.util.encoders.Encoder.decode:(Ljava/lang/String;Ljava/io/OutputStream;)I
pop
3: goto 6
4: StackMap locals: java.lang.String int java.io.ByteArrayOutputStream
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new org.bouncycastle.util.encoders.DecoderException
dup
new java.lang.StringBuilder
dup
ldc "unable to decode base64 string: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.util.encoders.DecoderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 data Ljava/lang/String;
1 7 1 len I
2 7 2 bOut Ljava/io/ByteArrayOutputStream;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
data
public static int decode(java.lang.String, java.io.OutputStream);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
aload 1
invokeinterface org.bouncycastle.util.encoders.Encoder.decode:(Ljava/lang/String;Ljava/io/OutputStream;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 data Ljava/lang/String;
0 1 1 out Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
out
public static int decode(byte[], int, int, java.io.OutputStream);
descriptor: ([BIILjava/io/OutputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.bouncycastle.util.encoders.Base64.encoder:Lorg/bouncycastle/util/encoders/Encoder;
aload 0
iload 1
iload 2
aload 3
invokeinterface org.bouncycastle.util.encoders.Encoder.decode:([BIILjava/io/OutputStream;)I
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 3: new org.bouncycastle.util.encoders.DecoderException
dup
new java.lang.StringBuilder
dup
ldc "unable to decode base64 data: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial org.bouncycastle.util.encoders.DecoderException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 base64Data [B
0 4 1 start I
0 4 2 length I
0 4 3 out Ljava/io/OutputStream;
3 4 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
base64Data
start
length
out
}
SourceFile: "Base64.java"