class sun.security.krb5.internal.TCPClient extends sun.security.krb5.internal.NetClient
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.security.krb5.internal.TCPClient
super_class: sun.security.krb5.internal.NetClient
{
private java.net.Socket tcpSocket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private java.io.BufferedOutputStream out;
descriptor: Ljava/io/BufferedOutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.BufferedInputStream in;
descriptor: Ljava/io/BufferedInputStream;
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial sun.security.krb5.internal.NetClient.<init>:()V
1: aload 0
new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
putfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
2: aload 0
getfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
iload 3
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
3: aload 0
new java.io.BufferedOutputStream
dup
aload 0
getfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
putfield sun.security.krb5.internal.TCPClient.out:Ljava/io/BufferedOutputStream;
4: aload 0
new java.io.BufferedInputStream
dup
aload 0
getfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
putfield sun.security.krb5.internal.TCPClient.in:Ljava/io/BufferedInputStream;
5: aload 0
getfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
iload 3
invokevirtual java.net.Socket.setSoTimeout:(I)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/krb5/internal/TCPClient;
0 7 1 hostname Ljava/lang/String;
0 7 2 port I
0 7 3 timeout I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hostname
port
timeout
public void send(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_4
newarray 8
astore 2
start local 2 1: aload 1
arraylength
aload 2
iconst_0
iconst_4
invokestatic sun.security.krb5.internal.TCPClient.intToNetworkByteOrder:(I[BII)V
2: aload 0
getfield sun.security.krb5.internal.TCPClient.out:Ljava/io/BufferedOutputStream;
aload 2
invokevirtual java.io.BufferedOutputStream.write:([B)V
3: aload 0
getfield sun.security.krb5.internal.TCPClient.out:Ljava/io/BufferedOutputStream;
aload 1
invokevirtual java.io.BufferedOutputStream.write:([B)V
4: aload 0
getfield sun.security.krb5.internal.TCPClient.out:Ljava/io/BufferedOutputStream;
invokevirtual java.io.BufferedOutputStream.flush:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/krb5/internal/TCPClient;
0 6 1 data [B
1 6 2 lenField [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
data
public byte[] receive();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iconst_4
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_4
invokevirtual sun.security.krb5.internal.TCPClient.readFully:([BI)I
istore 2
start local 2 2: iload 2
iconst_4
if_icmpeq 8
3: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
ifeq 7
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
5: ldc ">>>DEBUG: TCPClient could not read length field"
6: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: StackMap locals: byte[] int
StackMap stack:
aconst_null
areturn
8: StackMap locals:
StackMap stack:
aload 1
iconst_0
iconst_4
invokestatic sun.security.krb5.internal.TCPClient.networkByteOrderToInt:([BII)I
istore 3
start local 3 9: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
ifeq 13
10: getstatic java.lang.System.out:Ljava/io/PrintStream;
11: new java.lang.StringBuilder
dup
ldc ">>>DEBUG: TCPClient reading "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: StackMap locals: int
StackMap stack:
iload 3
ifgt 19
14: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
ifeq 18
15: getstatic java.lang.System.out:Ljava/io/PrintStream;
16: new java.lang.StringBuilder
dup
ldc ">>>DEBUG: TCPClient zero or negative length field: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
aconst_null
areturn
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.krb5.internal.TCPClient.in:Ljava/io/BufferedInputStream;
iload 3
invokestatic sun.misc.IOUtils.readExactlyNBytes:(Ljava/io/InputStream;I)[B
20: areturn
21: StackMap locals:
StackMap stack: java.io.IOException
pop
22: getstatic sun.security.krb5.internal.Krb5.DEBUG:Z
ifeq 28
23: getstatic java.lang.System.out:Ljava/io/PrintStream;
24: new java.lang.StringBuilder
dup
ldc ">>>DEBUG: TCPClient could not read complete packet ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
25: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/security/krb5/internal/TCPClient;
1 29 1 lenField [B
2 29 2 count I
9 29 3 len I
Exception table:
from to target type
19 20 21 Class java.io.IOException
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.krb5.internal.TCPClient.tcpSocket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/krb5/internal/TCPClient;
Exceptions:
throws java.io.IOException
private int readFully(byte[], int);
descriptor: ([BI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 4
start local 4 1: goto 9
2: StackMap locals: sun.security.krb5.internal.TCPClient byte[] int top int
StackMap stack:
aload 0
getfield sun.security.krb5.internal.TCPClient.in:Ljava/io/BufferedInputStream;
aload 1
iload 4
iload 2
invokevirtual java.io.BufferedInputStream.read:([BII)I
istore 3
start local 3 3: iload 3
iconst_m1
if_icmpne 7
4: iload 4
ifne 5
iconst_m1
goto 6
StackMap locals: sun.security.krb5.internal.TCPClient byte[] int int int
StackMap stack:
5: iload 4
StackMap locals:
StackMap stack: int
6: ireturn
7: StackMap locals:
StackMap stack:
iload 4
iload 3
iadd
istore 4
8: iload 2
iload 3
isub
istore 2
end local 3 9: StackMap locals: sun.security.krb5.internal.TCPClient byte[] int top int
StackMap stack:
iload 2
ifgt 2
10: iload 4
ireturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/krb5/internal/TCPClient;
0 11 1 inBuf [B
0 11 2 total I
3 9 3 count I
1 11 4 pos I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inBuf
total
private static int networkByteOrderToInt(byte[], int, int);
descriptor: ([BII)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iconst_4
if_icmple 4
1: new java.lang.IllegalArgumentException
dup
2: ldc "Cannot handle more than 4 bytes"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 5: iconst_0
istore 4
start local 4 6: goto 10
7: StackMap locals: int int
StackMap stack:
iload 3
bipush 8
ishl
istore 3
8: iload 3
aload 0
iload 1
iload 4
iadd
baload
sipush 255
iand
ior
istore 3
9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
iload 2
if_icmplt 7
end local 4 11: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 buf [B
0 12 1 start I
0 12 2 count I
5 12 3 answer I
6 11 4 i I
MethodParameters:
Name Flags
buf
start
count
private static void intToNetworkByteOrder(int, byte[], int, int);
descriptor: (I[BII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iconst_4
if_icmple 4
1: new java.lang.IllegalArgumentException
dup
2: ldc "Cannot handle more than 4 bytes"
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iload 3
iconst_1
isub
istore 4
start local 4 5: goto 9
6: StackMap locals: int
StackMap stack:
aload 1
iload 2
iload 4
iadd
iload 0
sipush 255
iand
i2b
bastore
7: iload 0
bipush 8
iushr
istore 0
8: iinc 4 -1
StackMap locals:
StackMap stack:
9: iload 4
ifge 6
end local 4 10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 num I
0 11 1 buf [B
0 11 2 start I
0 11 3 count I
5 10 4 i I
MethodParameters:
Name Flags
num
buf
start
count
}
SourceFile: "NetClient.java"