public class com.sun.jndi.ldap.sasl.SaslInputStream extends java.io.InputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jndi.ldap.sasl.SaslInputStream
super_class: java.io.InputStream
{
private static final boolean debug;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private byte[] saslBuffer;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] lenBuf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int bufPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private javax.security.sasl.SaslClient sc;
descriptor: Ljavax/security/sasl/SaslClient;
flags: (0x0002) ACC_PRIVATE
private int recvMaxBufSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(javax.security.sasl.SaslClient, java.io.InputStream);
descriptor: (Ljavax/security/sasl/SaslClient;Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
iconst_4
newarray 8
putfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
2: aload 0
iconst_0
newarray 8
putfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
3: aload 0
iconst_0
putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
4: aload 0
ldc 65536
putfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
5: aload 0
aload 2
putfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
6: aload 0
aload 1
putfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
7: aload 1
ldc "javax.security.sasl.maxbuffer"
invokeinterface javax.security.sasl.SaslClient.getNegotiatedProperty:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 8: aload 3
ifnull 15
9: aload 0
aload 3
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
10: goto 15
StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream javax.security.sasl.SaslClient java.io.InputStream java.lang.String
StackMap stack: java.lang.NumberFormatException
11: pop
12: new javax.security.sasl.SaslException
dup
new java.lang.StringBuilder
dup
ldc "javax.security.sasl.maxbuffer property must be numeric string: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
13: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
newarray 8
putfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
0 17 1 sc Ljavax/security/sasl/SaslClient;
0 17 2 in Ljava/io/InputStream;
8 17 3 str Ljava/lang/String;
Exception table:
from to target type
9 10 11 Class java.lang.NumberFormatException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
sc
in
public int read();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_1
newarray 8
astore 1
start local 1 1: aload 0
aload 1
iconst_0
iconst_1
invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.read:([BII)I
istore 2
start local 2 2: iload 2
ifle 4
3: aload 1
iconst_0
baload
ireturn
4: StackMap locals: byte[] int
StackMap stack:
iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
1 5 1 inBuf [B
2 5 2 count I
Exceptions:
throws java.io.IOException
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
arraylength
if_icmplt 7
1: aload 0
invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.fill:()I
istore 4
start local 4 2: goto 4
3: StackMap locals: int
StackMap stack:
aload 0
invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.fill:()I
istore 4
4: StackMap locals:
StackMap stack:
iload 4
ifeq 3
5: iload 4
iconst_m1
if_icmpne 7
6: iconst_m1
ireturn
end local 4 7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
arraylength
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
isub
istore 4
start local 4 8: iload 3
iload 4
if_icmple 12
9: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
aload 1
iload 2
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
arraylength
putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
11: iload 4
ireturn
12: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
aload 1
iload 2
iload 3
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
dup
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
iload 3
iadd
putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
14: iload 3
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
0 15 1 inBuf [B
0 15 2 start I
0 15 3 count I
2 7 4 actual I
8 15 4 avail I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inBuf
start
count
private int fill();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
iconst_4
invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.readFully:([BI)I
istore 1
start local 1 1: iload 1
iconst_4
if_icmpeq 3
2: iconst_m1
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.lenBuf:[B
iconst_0
iconst_4
invokestatic com.sun.jndi.ldap.sasl.SaslInputStream.networkByteOrderToInt:([BII)I
istore 2
start local 2 4: iload 2
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
if_icmple 10
5: new java.io.IOException
dup
6: new java.lang.StringBuilder
dup
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "exceeds the negotiated receive buffer size limit:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.recvMaxBufSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
8: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
iload 2
invokevirtual com.sun.jndi.ldap.sasl.SaslInputStream.readFully:([BI)I
istore 1
11: iload 1
iload 2
if_icmpeq 15
12: new java.io.EOFException
dup
new java.lang.StringBuilder
dup
ldc "Expecting to read "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
13: ldc " bytes but got "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes before EOF"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial java.io.EOFException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.saslBuffer:[B
iconst_0
iload 2
invokeinterface javax.security.sasl.SaslClient.unwrap:([BII)[B
putfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
16: aload 0
iconst_0
putfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
17: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
arraylength
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
1 18 1 actual I
4 18 2 len I
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: com.sun.jndi.ldap.sasl.SaslInputStream byte[] int top int
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
aload 1
iload 4
iload 2
invokevirtual java.io.InputStream.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: com.sun.jndi.ldap.sasl.SaslInputStream 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: com.sun.jndi.ldap.sasl.SaslInputStream 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 Lcom/sun/jndi/ldap/sasl/SaslInputStream;
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
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.buf:[B
arraylength
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.bufPos:I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.sc:Ljavax/security/sasl/SaslClient;
invokeinterface javax.security.sasl.SaslClient.dispose:()V
2: goto 5
StackMap locals: com.sun.jndi.ldap.sasl.SaslInputStream javax.security.sasl.SaslException
StackMap stack: javax.security.sasl.SaslException
3: astore 2
start local 2 4: aload 2
astore 1
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.jndi.ldap.sasl.SaslInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
6: aload 1
ifnull 8
7: aload 1
athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/jndi/ldap/sasl/SaslInputStream;
1 9 1 save Ljavax/security/sasl/SaslException;
4 5 2 e Ljavax/security/sasl/SaslException;
Exception table:
from to target type
1 2 3 Class javax.security.sasl.SaslException
Exceptions:
throws java.io.IOException
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 2
1: new java.lang.IllegalArgumentException
dup
ldc "Cannot handle more than 4 bytes"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 8
5: StackMap locals: int int
StackMap stack:
iload 3
bipush 8
ishl
istore 3
6: iload 3
aload 0
iload 1
iload 4
iadd
baload
sipush 255
iand
ior
istore 3
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 2
if_icmplt 5
end local 4 9: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 buf [B
0 10 1 start I
0 10 2 count I
3 10 3 answer I
4 9 4 i I
MethodParameters:
Name Flags
buf
start
count
}
SourceFile: "SaslInputStream.java"