public class sun.net.httpserver.AuthFilter extends com.sun.net.httpserver.Filter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.httpserver.AuthFilter
super_class: com.sun.net.httpserver.Filter
{
private com.sun.net.httpserver.Authenticator authenticator;
descriptor: Lcom/sun/net/httpserver/Authenticator;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.sun.net.httpserver.Authenticator);
descriptor: (Lcom/sun/net/httpserver/Authenticator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.net.httpserver.Filter.<init>:()V
1: aload 0
aload 1
putfield sun.net.httpserver.AuthFilter.authenticator:Lcom/sun/net/httpserver/Authenticator;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/AuthFilter;
0 3 1 authenticator Lcom/sun/net/httpserver/Authenticator;
MethodParameters:
Name Flags
authenticator
public java.lang.String description();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Authentication filter"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/httpserver/AuthFilter;
public void setAuthenticator(com.sun.net.httpserver.Authenticator);
descriptor: (Lcom/sun/net/httpserver/Authenticator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.net.httpserver.AuthFilter.authenticator:Lcom/sun/net/httpserver/Authenticator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/httpserver/AuthFilter;
0 2 1 a Lcom/sun/net/httpserver/Authenticator;
MethodParameters:
Name Flags
a
public void consumeInput(com.sun.net.httpserver.HttpExchange);
descriptor: (Lcom/sun/net/httpserver/HttpExchange;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.net.httpserver.HttpExchange.getRequestBody:()Ljava/io/InputStream;
astore 2
start local 2 1: sipush 4096
newarray 8
astore 3
start local 3 2: StackMap locals: java.io.InputStream byte[]
StackMap stack:
aload 2
aload 3
invokevirtual java.io.InputStream.read:([B)I
iconst_m1
if_icmpne 2
3: aload 2
invokevirtual java.io.InputStream.close:()V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/httpserver/AuthFilter;
0 5 1 t Lcom/sun/net/httpserver/HttpExchange;
1 5 2 i Ljava/io/InputStream;
2 5 3 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
t
public void doFilter(com.sun.net.httpserver.HttpExchange, com.sun.net.httpserver.Filter$Chain);
descriptor: (Lcom/sun/net/httpserver/HttpExchange;Lcom/sun/net/httpserver/Filter$Chain;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.net.httpserver.AuthFilter.authenticator:Lcom/sun/net/httpserver/Authenticator;
ifnull 18
1: aload 0
getfield sun.net.httpserver.AuthFilter.authenticator:Lcom/sun/net/httpserver/Authenticator;
aload 1
invokevirtual com.sun.net.httpserver.Authenticator.authenticate:(Lcom/sun/net/httpserver/HttpExchange;)Lcom/sun/net/httpserver/Authenticator$Result;
astore 3
start local 3 2: aload 3
instanceof com.sun.net.httpserver.Authenticator$Success
ifeq 8
3: aload 3
checkcast com.sun.net.httpserver.Authenticator$Success
astore 4
start local 4 4: aload 1
invokestatic sun.net.httpserver.ExchangeImpl.get:(Lcom/sun/net/httpserver/HttpExchange;)Lsun/net/httpserver/ExchangeImpl;
astore 5
start local 5 5: aload 5
aload 4
invokevirtual com.sun.net.httpserver.Authenticator$Success.getPrincipal:()Lcom/sun/net/httpserver/HttpPrincipal;
invokevirtual sun.net.httpserver.ExchangeImpl.setPrincipal:(Lcom/sun/net/httpserver/HttpPrincipal;)V
6: aload 2
aload 1
invokevirtual com.sun.net.httpserver.Filter$Chain.doFilter:(Lcom/sun/net/httpserver/HttpExchange;)V
end local 5 end local 4 7: goto 19
StackMap locals: com.sun.net.httpserver.Authenticator$Result
StackMap stack:
8: aload 3
instanceof com.sun.net.httpserver.Authenticator$Retry
ifeq 13
9: aload 3
checkcast com.sun.net.httpserver.Authenticator$Retry
astore 4
start local 4 10: aload 0
aload 1
invokevirtual sun.net.httpserver.AuthFilter.consumeInput:(Lcom/sun/net/httpserver/HttpExchange;)V
11: aload 1
aload 4
invokevirtual com.sun.net.httpserver.Authenticator$Retry.getResponseCode:()I
ldc -1
invokevirtual com.sun.net.httpserver.HttpExchange.sendResponseHeaders:(IJ)V
end local 4 12: goto 19
StackMap locals:
StackMap stack:
13: aload 3
instanceof com.sun.net.httpserver.Authenticator$Failure
ifeq 19
14: aload 3
checkcast com.sun.net.httpserver.Authenticator$Failure
astore 4
start local 4 15: aload 0
aload 1
invokevirtual sun.net.httpserver.AuthFilter.consumeInput:(Lcom/sun/net/httpserver/HttpExchange;)V
16: aload 1
aload 4
invokevirtual com.sun.net.httpserver.Authenticator$Failure.getResponseCode:()I
ldc -1
invokevirtual com.sun.net.httpserver.HttpExchange.sendResponseHeaders:(IJ)V
end local 4 end local 3 17: goto 19
18: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual com.sun.net.httpserver.Filter$Chain.doFilter:(Lcom/sun/net/httpserver/HttpExchange;)V
19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/net/httpserver/AuthFilter;
0 20 1 t Lcom/sun/net/httpserver/HttpExchange;
0 20 2 chain Lcom/sun/net/httpserver/Filter$Chain;
2 17 3 r Lcom/sun/net/httpserver/Authenticator$Result;
4 7 4 s Lcom/sun/net/httpserver/Authenticator$Success;
5 7 5 e Lsun/net/httpserver/ExchangeImpl;
10 12 4 ry Lcom/sun/net/httpserver/Authenticator$Retry;
15 17 4 f Lcom/sun/net/httpserver/Authenticator$Failure;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
t
chain
}
SourceFile: "AuthFilter.java"
InnerClasses:
public Failure = com.sun.net.httpserver.Authenticator$Failure of com.sun.net.httpserver.Authenticator
public abstract Result = com.sun.net.httpserver.Authenticator$Result of com.sun.net.httpserver.Authenticator
public Retry = com.sun.net.httpserver.Authenticator$Retry of com.sun.net.httpserver.Authenticator
public Success = com.sun.net.httpserver.Authenticator$Success of com.sun.net.httpserver.Authenticator
public Chain = com.sun.net.httpserver.Filter$Chain of com.sun.net.httpserver.Filter