public final class org.springframework.security.crypto.codec.Utf8
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.springframework.security.crypto.codec.Utf8
super_class: java.lang.Object
{
private static final java.nio.charset.Charset CHARSET;
descriptor: Ljava/nio/charset/Charset;
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: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
putstatic org.springframework.security.crypto.codec.Utf8.CHARSET:Ljava/nio/charset/Charset;
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/Utf8;
public static byte[] encode(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: getstatic org.springframework.security.crypto.codec.Utf8.CHARSET:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
aload 0
invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
astore 1
start local 1 1: aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
newarray 8
astore 2
start local 2 2: aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
aload 2
iconst_0
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 2
4: areturn
end local 2 end local 1 5: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
astore 1
start local 1 6: new java.lang.IllegalArgumentException
dup
ldc "Encoding failed"
aload 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 string Ljava/lang/CharSequence;
1 5 1 bytes Ljava/nio/ByteBuffer;
2 5 2 bytesCopy [B
6 7 1 ex Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
0 4 5 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
string
public static java.lang.String decode(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic org.springframework.security.crypto.codec.Utf8.CHARSET:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
aload 0
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
astore 1
start local 1 3: new java.lang.IllegalArgumentException
dup
ldc "Decoding failed"
aload 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bytes [B
3 4 1 ex Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
0 1 2 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
bytes
}
SourceFile: "Utf8.java"