final class sun.security.ssl.MaxFragmentLengthExtension extends sun.security.ssl.HelloExtension
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.MaxFragmentLengthExtension
super_class: sun.security.ssl.HelloExtension
{
private static final int MAX_FRAGMENT_LENGTH_512;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int MAX_FRAGMENT_LENGTH_1024;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int MAX_FRAGMENT_LENGTH_2048;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int MAX_FRAGMENT_LENGTH_4096;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
final int maxFragmentLength;
descriptor: I
flags: (0x0010) ACC_FINAL
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_MAX_FRAGMENT_LENGTH:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: iload 1
sipush 1024
if_icmpge 4
2: aload 0
iconst_1
putfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
3: goto 11
StackMap locals: sun.security.ssl.MaxFragmentLengthExtension int
StackMap stack:
4: iload 1
sipush 2048
if_icmpge 7
5: aload 0
iconst_2
putfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
6: goto 11
StackMap locals:
StackMap stack:
7: iload 1
sipush 4096
if_icmpge 10
8: aload 0
iconst_3
putfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
iconst_4
putfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
0 12 1 fragmentSize I
MethodParameters:
Name Flags
fragmentSize
void <init>(sun.security.ssl.HandshakeInStream, int);
descriptor: (Lsun/security/ssl/HandshakeInStream;I)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic sun.security.ssl.ExtensionType.EXT_MAX_FRAGMENT_LENGTH:Lsun/security/ssl/ExtensionType;
invokespecial sun.security.ssl.HelloExtension.<init>:(Lsun/security/ssl/ExtensionType;)V
1: iload 2
iconst_1
if_icmpeq 3
2: new javax.net.ssl.SSLProtocolException
dup
new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: sun.security.ssl.MaxFragmentLengthExtension sun.security.ssl.HandshakeInStream int
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.ssl.HandshakeInStream.getInt8:()I
putfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
4: aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
iconst_4
if_icmpgt 5
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
iconst_1
if_icmpge 6
5: StackMap locals:
StackMap stack:
new javax.net.ssl.SSLProtocolException
dup
new java.lang.StringBuilder
dup
ldc "Invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " extension"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial javax.net.ssl.SSLProtocolException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
0 7 1 s Lsun/security/ssl/HandshakeInStream;
0 7 2 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
len
int length();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_5
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
void send(sun.security.ssl.HandshakeOutStream);
descriptor: (Lsun/security/ssl/HandshakeOutStream;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.type:Lsun/security/ssl/ExtensionType;
getfield sun.security.ssl.ExtensionType.id:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
1: aload 1
iconst_1
invokevirtual sun.security.ssl.HandshakeOutStream.putInt16:(I)V
2: aload 1
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
invokevirtual sun.security.ssl.HandshakeOutStream.putInt8:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
0 4 1 s Lsun/security/ssl/HandshakeOutStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
int getMaxFragLen();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
tableswitch { // 1 - 4
1: 1
2: 2
3: 3
4: 4
default: 5
}
1: StackMap locals:
StackMap stack:
sipush 512
ireturn
2: StackMap locals:
StackMap stack:
sipush 1024
ireturn
3: StackMap locals:
StackMap stack:
sipush 2048
ireturn
4: StackMap locals:
StackMap stack:
sipush 4096
ireturn
5: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
static boolean needFragLenNego(int);
descriptor: (I)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ifle 1
iload 0
sipush 4096
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 fragmentSize I
MethodParameters:
Name Flags
fragmentSize
static int getValidMaxFragLen(int);
descriptor: (I)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 1024
if_icmpge 2
1: sipush 512
ireturn
2: StackMap locals:
StackMap stack:
iload 0
sipush 2048
if_icmpge 4
3: sipush 1024
ireturn
4: StackMap locals:
StackMap stack:
iload 0
sipush 4096
if_icmpge 6
5: sipush 2048
ireturn
6: StackMap locals:
StackMap stack:
iload 0
sipush 4096
if_icmpne 8
7: sipush 4096
ireturn
8: StackMap locals:
StackMap stack:
sipush 16384
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 fragmentSize I
MethodParameters:
Name Flags
fragmentSize
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 "Extension "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.type:Lsun/security/ssl/ExtensionType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", max_fragment_length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc "(2^"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.ssl.MaxFragmentLengthExtension.maxFragmentLength:I
bipush 8
iadd
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/ssl/MaxFragmentLengthExtension;
}
SourceFile: "MaxFragmentLengthExtension.java"