class sun.net.httpserver.SSLStreams$EngineWrapper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.SSLStreams$EngineWrapper
super_class: java.lang.Object
{
java.nio.channels.SocketChannel chan;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0000)
javax.net.ssl.SSLEngine engine;
descriptor: Ljavax/net/ssl/SSLEngine;
flags: (0x0000)
java.lang.Object wrapLock;
descriptor: Ljava/lang/Object;
flags: (0x0000)
java.lang.Object unwrapLock;
descriptor: Ljava/lang/Object;
flags: (0x0000)
java.nio.ByteBuffer unwrap_src;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
java.nio.ByteBuffer wrap_dst;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
boolean closed;
descriptor: Z
flags: (0x0000)
int u_remaining;
descriptor: I
flags: (0x0000)
final sun.net.httpserver.SSLStreams this$0;
descriptor: Lsun/net/httpserver/SSLStreams;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/net/httpserver/SSLStreams;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.httpserver.SSLStreams$EngineWrapper.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.net.httpserver.SSLStreams, java.nio.channels.SocketChannel, javax.net.ssl.SSLEngine);
descriptor: (Lsun/net/httpserver/SSLStreams;Ljava/nio/channels/SocketChannel;Ljavax/net/ssl/SSLEngine;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.net.httpserver.SSLStreams$EngineWrapper.closed:Z
2: aload 0
aload 2
putfield sun.net.httpserver.SSLStreams$EngineWrapper.chan:Ljava/nio/channels/SocketChannel;
3: aload 0
aload 3
putfield sun.net.httpserver.SSLStreams$EngineWrapper.engine:Ljavax/net/ssl/SSLEngine;
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.net.httpserver.SSLStreams$EngineWrapper.wrapLock:Ljava/lang/Object;
5: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrapLock:Ljava/lang/Object;
6: aload 0
aload 1
getstatic sun.net.httpserver.SSLStreams$BufType.PACKET:Lsun/net/httpserver/SSLStreams$BufType;
invokevirtual sun.net.httpserver.SSLStreams.allocate:(Lsun/net/httpserver/SSLStreams$BufType;)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
7: aload 0
aload 1
getstatic sun.net.httpserver.SSLStreams$BufType.PACKET:Lsun/net/httpserver/SSLStreams$BufType;
invokevirtual sun.net.httpserver.SSLStreams.allocate:(Lsun/net/httpserver/SSLStreams$BufType;)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
8: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/httpserver/SSLStreams$EngineWrapper;
0 9 2 chan Ljava/nio/channels/SocketChannel;
0 9 3 engine Ljavax/net/ssl/SSLEngine;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
this$0 final
chan
engine
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/SSLStreams$EngineWrapper;
Exceptions:
throws java.io.IOException
sun.net.httpserver.SSLStreams$WrapperResult wrapAndSend(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lsun/net/httpserver/SSLStreams$WrapperResult;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual sun.net.httpserver.SSLStreams$EngineWrapper.wrapAndSendX:(Ljava/nio/ByteBuffer;Z)Lsun/net/httpserver/SSLStreams$WrapperResult;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/SSLStreams$EngineWrapper;
0 1 1 src Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
sun.net.httpserver.SSLStreams$WrapperResult wrapAndSendX(java.nio.ByteBuffer, boolean);
descriptor: (Ljava/nio/ByteBuffer;Z)Lsun/net/httpserver/SSLStreams$WrapperResult;
flags: (0x0000)
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.closed:Z
ifeq 2
iload 2
ifne 2
1: new java.io.IOException
dup
ldc "Engine is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.net.httpserver.SSLStreams$WrapperResult
dup
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
invokespecial sun.net.httpserver.SSLStreams$WrapperResult.<init>:(Lsun/net/httpserver/SSLStreams;)V
astore 4
start local 4 3: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrapLock:Ljava/lang/Object;
dup
astore 5
monitorenter
4: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
5: StackMap locals: sun.net.httpserver.SSLStreams$EngineWrapper java.nio.ByteBuffer int top sun.net.httpserver.SSLStreams$WrapperResult java.lang.Object
StackMap stack:
aload 4
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.engine:Ljavax/net/ssl/SSLEngine;
aload 1
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
invokevirtual javax.net.ssl.SSLEngine.wrap:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
putfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
6: aload 4
getfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.getStatus:()Ljavax/net/ssl/SSLEngineResult$Status;
astore 3
start local 3 7: aload 3
getstatic javax.net.ssl.SSLEngineResult$Status.BUFFER_OVERFLOW:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 9
8: aload 0
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
iconst_1
getstatic sun.net.httpserver.SSLStreams$BufType.PACKET:Lsun/net/httpserver/SSLStreams$BufType;
invokevirtual sun.net.httpserver.SSLStreams.realloc:(Ljava/nio/ByteBuffer;ZLsun/net/httpserver/SSLStreams$BufType;)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
9: StackMap locals: sun.net.httpserver.SSLStreams$EngineWrapper java.nio.ByteBuffer int javax.net.ssl.SSLEngineResult$Status sun.net.httpserver.SSLStreams$WrapperResult java.lang.Object
StackMap stack:
aload 3
getstatic javax.net.ssl.SSLEngineResult$Status.BUFFER_OVERFLOW:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpeq 5
10: aload 3
getstatic javax.net.ssl.SSLEngineResult$Status.CLOSED:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 14
iload 2
ifne 14
11: aload 0
iconst_1
putfield sun.net.httpserver.SSLStreams$EngineWrapper.closed:Z
12: aload 4
aload 5
monitorexit
13: areturn
14: StackMap locals:
StackMap stack:
aload 4
getfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.bytesProduced:()I
ifle 20
15: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
16: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 6
start local 6 17: getstatic sun.net.httpserver.SSLStreams$EngineWrapper.$assertionsDisabled:Z
ifne 19
iload 6
aload 4
getfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.bytesProduced:()I
if_icmpeq 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals: int
StackMap stack:
iload 6
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.chan:Ljava/nio/channels/SocketChannel;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.wrap_dst:Ljava/nio/ByteBuffer;
invokevirtual java.nio.channels.SocketChannel.write:(Ljava/nio/ByteBuffer;)I
isub
istore 6
19: StackMap locals:
StackMap stack:
iload 6
ifgt 18
end local 6 20: StackMap locals:
StackMap stack:
aload 5
monitorexit
21: goto 24
end local 3 StackMap locals: sun.net.httpserver.SSLStreams$EngineWrapper java.nio.ByteBuffer int top sun.net.httpserver.SSLStreams$WrapperResult java.lang.Object
StackMap stack: java.lang.Throwable
22: aload 5
monitorexit
23: athrow
start local 3 24: StackMap locals: sun.net.httpserver.SSLStreams$EngineWrapper java.nio.ByteBuffer int javax.net.ssl.SSLEngineResult$Status sun.net.httpserver.SSLStreams$WrapperResult
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/net/httpserver/SSLStreams$EngineWrapper;
0 25 1 src Ljava/nio/ByteBuffer;
0 25 2 ignoreClose Z
7 22 3 status Ljavax/net/ssl/SSLEngineResult$Status;
24 25 3 status Ljavax/net/ssl/SSLEngineResult$Status;
3 25 4 r Lsun/net/httpserver/SSLStreams$WrapperResult;
17 20 6 l I
Exception table:
from to target type
4 13 22 any
14 21 22 any
22 23 22 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
ignoreClose
sun.net.httpserver.SSLStreams$WrapperResult recvAndUnwrap(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lsun/net/httpserver/SSLStreams$WrapperResult;
flags: (0x0000)
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: getstatic javax.net.ssl.SSLEngineResult$Status.OK:Ljavax/net/ssl/SSLEngineResult$Status;
astore 2
start local 2 1: new sun.net.httpserver.SSLStreams$WrapperResult
dup
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
invokespecial sun.net.httpserver.SSLStreams$WrapperResult.<init>:(Lsun/net/httpserver/SSLStreams;)V
astore 3
start local 3 2: aload 3
aload 1
putfield sun.net.httpserver.SSLStreams$WrapperResult.buf:Ljava/nio/ByteBuffer;
3: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.closed:Z
ifeq 5
4: new java.io.IOException
dup
ldc "Engine is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: javax.net.ssl.SSLEngineResult$Status sun.net.httpserver.SSLStreams$WrapperResult
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.u_remaining:I
ifle 10
6: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.compact:()Ljava/nio/ByteBuffer;
pop
7: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
8: iconst_0
istore 4
start local 4 9: goto 12
end local 4 10: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
11: iconst_1
istore 4
start local 4 12: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrapLock:Ljava/lang/Object;
dup
astore 5
monitorenter
13: StackMap locals: java.lang.Object
StackMap stack:
iload 4
ifeq 19
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.chan:Ljava/nio/channels/SocketChannel;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.channels.SocketChannel.read:(Ljava/nio/ByteBuffer;)I
istore 6
start local 6 15: iload 6
ifeq 14
16: iload 6
iconst_m1
if_icmpne 18
17: new java.io.IOException
dup
ldc "connection closed for reading"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
end local 6 19: StackMap locals:
StackMap stack:
aload 3
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.engine:Ljavax/net/ssl/SSLEngine;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
aload 3
getfield sun.net.httpserver.SSLStreams$WrapperResult.buf:Ljava/nio/ByteBuffer;
invokevirtual javax.net.ssl.SSLEngine.unwrap:(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Ljavax/net/ssl/SSLEngineResult;
putfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
20: aload 3
getfield sun.net.httpserver.SSLStreams$WrapperResult.result:Ljavax/net/ssl/SSLEngineResult;
invokevirtual javax.net.ssl.SSLEngineResult.getStatus:()Ljavax/net/ssl/SSLEngineResult$Status;
astore 2
21: aload 2
getstatic javax.net.ssl.SSLEngineResult$Status.BUFFER_UNDERFLOW:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 31
22: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
if_icmpne 27
23: aload 0
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
24: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
iconst_0
getstatic sun.net.httpserver.SSLStreams$BufType.PACKET:Lsun/net/httpserver/SSLStreams$BufType;
25: invokevirtual sun.net.httpserver.SSLStreams.realloc:(Ljava/nio/ByteBuffer;ZLsun/net/httpserver/SSLStreams$BufType;)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
26: goto 29
27: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
28: aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
29: StackMap locals:
StackMap stack:
iconst_1
istore 4
30: goto 40
StackMap locals:
StackMap stack:
31: aload 2
getstatic javax.net.ssl.SSLEngineResult$Status.BUFFER_OVERFLOW:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 35
32: aload 3
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.this$0:Lsun/net/httpserver/SSLStreams;
aload 3
getfield sun.net.httpserver.SSLStreams$WrapperResult.buf:Ljava/nio/ByteBuffer;
iconst_1
getstatic sun.net.httpserver.SSLStreams$BufType.APPLICATION:Lsun/net/httpserver/SSLStreams$BufType;
invokevirtual sun.net.httpserver.SSLStreams.realloc:(Ljava/nio/ByteBuffer;ZLsun/net/httpserver/SSLStreams$BufType;)Ljava/nio/ByteBuffer;
putfield sun.net.httpserver.SSLStreams$WrapperResult.buf:Ljava/nio/ByteBuffer;
33: iconst_0
istore 4
34: goto 40
StackMap locals:
StackMap stack:
35: aload 2
getstatic javax.net.ssl.SSLEngineResult$Status.CLOSED:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 40
36: aload 0
iconst_1
putfield sun.net.httpserver.SSLStreams$EngineWrapper.closed:Z
37: aload 3
getfield sun.net.httpserver.SSLStreams$WrapperResult.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
38: aload 3
aload 5
monitorexit
39: areturn
40: StackMap locals:
StackMap stack:
aload 2
getstatic javax.net.ssl.SSLEngineResult$Status.OK:Ljavax/net/ssl/SSLEngineResult$Status;
if_acmpne 13
41: aload 5
monitorexit
42: goto 45
StackMap locals:
StackMap stack: java.lang.Throwable
43: aload 5
monitorexit
44: athrow
45: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.httpserver.SSLStreams$EngineWrapper.unwrap_src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
putfield sun.net.httpserver.SSLStreams$EngineWrapper.u_remaining:I
46: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lsun/net/httpserver/SSLStreams$EngineWrapper;
0 47 1 dst Ljava/nio/ByteBuffer;
1 47 2 status Ljavax/net/ssl/SSLEngineResult$Status;
2 47 3 r Lsun/net/httpserver/SSLStreams$WrapperResult;
9 10 4 needData Z
12 47 4 needData Z
15 19 6 x I
Exception table:
from to target type
13 39 43 any
40 42 43 any
43 44 43 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dst
}
SourceFile: "SSLStreams.java"
NestHost: sun.net.httpserver.SSLStreams
InnerClasses:
public final Status = javax.net.ssl.SSLEngineResult$Status of javax.net.ssl.SSLEngineResult
final BufType = sun.net.httpserver.SSLStreams$BufType of sun.net.httpserver.SSLStreams
EngineWrapper = sun.net.httpserver.SSLStreams$EngineWrapper of sun.net.httpserver.SSLStreams
WrapperResult = sun.net.httpserver.SSLStreams$WrapperResult of sun.net.httpserver.SSLStreams