public final class org.springframework.security.crypto.codec.Hex
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.springframework.security.crypto.codec.Hex
super_class: java.lang.Object
{
private static final char[] HEX;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "0123456789abcdef"
invokevirtual java.lang.String.toCharArray:()[C
putstatic org.springframework.security.crypto.codec.Hex.HEX:[C
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/security/crypto/codec/Hex;
public static char[] encode(byte[]);
descriptor: ([B)[C
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
arraylength
istore 1
start local 1 1: iconst_2
iload 1
imul
newarray 5
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 8
StackMap locals: byte[] int char[] int top int int byte[]
StackMap stack:
4: aload 7
iload 5
baload
istore 4
start local 4 5: aload 2
iload 3
iinc 3 1
getstatic org.springframework.security.crypto.codec.Hex.HEX:[C
sipush 240
iload 4
iand
iconst_4
iushr
caload
castore
6: aload 2
iload 3
iinc 3 1
getstatic org.springframework.security.crypto.codec.Hex.HEX:[C
bipush 15
iload 4
iand
caload
castore
end local 4 7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 4
9: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 bytes [B
1 10 1 nBytes I
2 10 2 result [C
3 10 3 j I
5 7 4 aByte B
MethodParameters:
Name Flags
bytes
public static byte[] decode(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 1
start local 1 1: iload 1
iconst_2
irem
ifeq 3
2: new java.lang.IllegalArgumentException
dup
ldc "Hex-encoded string must have an even number of characters"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
iload 1
iconst_2
idiv
newarray 8
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 14
6: StackMap locals: byte[] int
StackMap stack:
aload 0
iload 3
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 16
invokestatic java.lang.Character.digit:(CI)I
istore 4
start local 4 7: aload 0
iload 3
iconst_1
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 16
invokestatic java.lang.Character.digit:(CI)I
istore 5
start local 5 8: iload 4
iflt 9
iload 5
ifge 12
9: StackMap locals: int int
StackMap stack:
new java.lang.IllegalArgumentException
dup
10: new java.lang.StringBuilder
dup
ldc "Detected a Non-hex character at "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
iconst_1
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " or "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
iconst_2
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " position"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 2
iload 3
iconst_2
idiv
iload 4
iconst_4
ishl
iload 5
ior
i2b
bastore
end local 5 end local 4 13: iinc 3 2
StackMap locals:
StackMap stack:
14: iload 3
iload 1
if_icmplt 6
end local 3 15: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 s Ljava/lang/CharSequence;
1 16 1 nChars I
4 16 2 result [B
5 15 3 i I
7 13 4 msb I
8 13 5 lsb I
MethodParameters:
Name Flags
s
}
SourceFile: "Hex.java"