public class io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl extends io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler<io.vertx.ext.auth.htdigest.HtdigestAuth> implements io.vertx.ext.web.handler.DigestAuthHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl
super_class: io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler
{
private static final io.vertx.core.impl.logging.Logger LOG;
descriptor: Lio/vertx/core/impl/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String DEFAULT_NONCE_MAP_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "htdigest.nonces"
private static final java.util.regex.Pattern PARSER;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern SPLITTER;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.security.MessageDigest MD5;
descriptor: Ljava/security/MessageDigest;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.vertx.ext.auth.VertxContextPRNG random;
descriptor: Lio/vertx/ext/auth/VertxContextPRNG;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.shareddata.LocalMap<java.lang.String, io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce> nonces;
descriptor: Lio/vertx/core/shareddata/LocalMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/core/shareddata/LocalMap<Ljava/lang/String;Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;>;
private final long nonceExpireTimeout;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long lastExpireRun;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private static final char[] hexArray;
descriptor: [C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: ldc Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler;
invokestatic io.vertx.core.impl.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/impl/logging/Logger;
putstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.LOG:Lio/vertx/core/impl/logging/Logger;
1: ldc "(\\w+)=[\"]?([^\"]*)[\"]?$"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.PARSER:Ljava/util/regex/Pattern;
2: ldc ",(?=(?:[^\"]|\"[^\"]*\")*$)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.SPLITTER:Ljava/util/regex/Pattern;
3: ldc "MD5"
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
putstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.MD5:Ljava/security/MessageDigest;
4: goto 7
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
5: astore 0
start local 0 6: new java.lang.RuntimeException
dup
aload 0
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 7: StackMap locals:
StackMap stack:
ldc "0123456789abcdef"
invokevirtual java.lang.String.toCharArray:()[C
putstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.hexArray:[C
return
LocalVariableTable:
Start End Slot Name Signature
6 7 0 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
3 4 5 Class java.security.NoSuchAlgorithmException
public void <init>(io.vertx.core.Vertx, io.vertx.ext.auth.htdigest.HtdigestAuth, long);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/auth/htdigest/HtdigestAuth;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
aload 2
invokeinterface io.vertx.ext.auth.htdigest.HtdigestAuth.realm:()Ljava/lang/String;
getstatic io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type.DIGEST:Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
invokespecial io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.<init>:(Lio/vertx/ext/auth/authentication/AuthenticationProvider;Ljava/lang/String;Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;)V
1: aload 0
aload 1
invokestatic io.vertx.ext.auth.VertxContextPRNG.current:(Lio/vertx/core/Vertx;)Lio/vertx/ext/auth/VertxContextPRNG;
putfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
2: aload 0
aload 1
invokeinterface io.vertx.core.Vertx.sharedData:()Lio/vertx/core/shareddata/SharedData;
ldc "htdigest.nonces"
invokeinterface io.vertx.core.shareddata.SharedData.getLocalMap:(Ljava/lang/String;)Lio/vertx/core/shareddata/LocalMap;
putfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
3: aload 0
lload 3
putfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonceExpireTimeout:J
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;
0 5 1 vertx Lio/vertx/core/Vertx;
0 5 2 authProvider Lio/vertx/ext/auth/htdigest/HtdigestAuth;
0 5 3 nonceExpireTimeout J
MethodParameters:
Name Flags
vertx
authProvider
nonceExpireTimeout
public void parseCredentials(io.vertx.ext.web.RoutingContext, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.authentication.Credentials>>);
descriptor: (Lio/vertx/ext/web/RoutingContext;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 1: lload 3
aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.lastExpireRun:J
lsub
aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonceExpireTimeout:J
ldc 2
ldiv
lcmp
ifle 9
2: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 5
start local 5 3: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 0
lload 3
aload 5
invokedynamic accept(Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;JLjava/util/Set;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
io/vertx/ext/web/handler/impl/DigestAuthHandlerImpl.lambda$0(JLjava/util/Set;Ljava/lang/String;Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;)V (7)
(Ljava/lang/String;Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;)V
invokeinterface io.vertx.core.shareddata.LocalMap.forEach:(Ljava/util/function/BiConsumer;)V
4: aload 5
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 7
StackMap locals: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl io.vertx.ext.web.RoutingContext io.vertx.core.Handler long java.util.Set top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 6: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 6
invokeinterface io.vertx.core.shareddata.LocalMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 7: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 0
lload 3
putfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.lastExpireRun:J
end local 5 9: StackMap locals: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl io.vertx.ext.web.RoutingContext io.vertx.core.Handler long
StackMap stack:
aload 0
aload 1
iconst_0
aload 0
aload 2
aload 1
invokedynamic handle(Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;Lio/vertx/core/Handler;Lio/vertx/ext/web/RoutingContext;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/ext/web/handler/impl/DigestAuthHandlerImpl.lambda$1(Lio/vertx/core/Handler;Lio/vertx/ext/web/RoutingContext;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.parseAuthorization:(Lio/vertx/ext/web/RoutingContext;ZLio/vertx/core/Handler;)V
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;
0 11 1 context Lio/vertx/ext/web/RoutingContext;
0 11 2 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/auth/authentication/Credentials;>;>;
1 11 3 now J
3 9 5 toRemove Ljava/util/Set<Ljava/lang/String;>;
6 7 6 n Ljava/lang/String;
Signature: (Lio/vertx/ext/web/RoutingContext;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/auth/authentication/Credentials;>;>;)V
MethodParameters:
Name Flags
context
handler
public java.lang.String authenticateHeader(io.vertx.ext.web.RoutingContext);
descriptor: (Lio/vertx/ext/web/RoutingContext;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: bipush 32
newarray 8
astore 2
start local 2 1: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
aload 2
invokeinterface io.vertx.ext.auth.VertxContextPRNG.nextBytes:([B)V
2: aload 2
invokestatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.md5:([B)Ljava/lang/String;
astore 3
start local 3 3: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 3
new io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce
dup
iconst_0
invokespecial io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce.<init>:(I)V
invokeinterface io.vertx.core.shareddata.LocalMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aconst_null
astore 4
start local 4 5: aload 1
invokeinterface io.vertx.ext.web.RoutingContext.session:()Lio/vertx/ext/web/Session;
astore 5
start local 5 6: aload 5
ifnull 8
7: aload 5
invokeinterface io.vertx.ext.web.Session.data:()Ljava/util/Map;
ldc "opaque"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
8: StackMap locals: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl io.vertx.ext.web.RoutingContext byte[] java.lang.String java.lang.String io.vertx.ext.web.Session
StackMap stack:
aload 4
ifnonnull 11
9: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
aload 2
invokeinterface io.vertx.ext.auth.VertxContextPRNG.nextBytes:([B)V
10: aload 2
invokestatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.md5:([B)Ljava/lang/String;
astore 4
11: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Digest realm=\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.realm:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\", qop=\"auth\", nonce=\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\", opaque=\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;
0 12 1 context Lio/vertx/ext/web/RoutingContext;
1 12 2 bytes [B
3 12 3 nonce Ljava/lang/String;
5 12 4 opaque Ljava/lang/String;
6 12 5 session Lio/vertx/ext/web/Session;
MethodParameters:
Name Flags
context
private static java.lang.String bytesToHex(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
arraylength
iconst_2
imul
newarray 5
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: char[] int
StackMap stack:
aload 0
iload 2
baload
sipush 255
iand
istore 3
start local 3 4: aload 1
iload 2
iconst_2
imul
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.hexArray:[C
iload 3
iconst_4
iushr
caload
castore
5: aload 1
iload 2
iconst_2
imul
iconst_1
iadd
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.hexArray:[C
iload 3
bipush 15
iand
caload
castore
end local 3 6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
arraylength
if_icmplt 3
end local 2 8: new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 bytes [B
1 9 1 hexChars [C
2 8 2 j I
4 6 3 v I
MethodParameters:
Name Flags
bytes
private static synchronized java.lang.String md5(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.MD5:Ljava/security/MessageDigest;
invokevirtual java.security.MessageDigest.reset:()V
1: getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.MD5:Ljava/security/MessageDigest;
aload 0
invokevirtual java.security.MessageDigest.digest:([B)[B
invokestatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.bytesToHex:([B)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 payload [B
MethodParameters:
Name Flags
payload
private void lambda$0(long, java.util.Set, java.lang.String, io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce);
descriptor: (JLjava/util/Set;Ljava/lang/String;Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 4 start local 5 0: aload 5
ifnull 2
aload 5
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce.createdAt:J
aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonceExpireTimeout:J
ladd
lload 1
lcmp
ifge 2
1: aload 3
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;
0 3 4 key Ljava/lang/String;
0 3 5 n Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;
private void lambda$1(io.vertx.core.Handler, io.vertx.ext.web.RoutingContext, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/ext/web/RoutingContext;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=7, locals=11, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 1
aload 3
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: return
3: StackMap locals:
StackMap stack:
new io.vertx.ext.auth.htdigest.HtdigestCredentials
dup
invokespecial io.vertx.ext.auth.htdigest.HtdigestCredentials.<init>:()V
astore 4
start local 4 4: getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.SPLITTER:Ljava/util/regex/Pattern;
aload 3
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.CharSequence
invokevirtual java.util.regex.Pattern.split:(Ljava/lang/CharSequence;)[Ljava/lang/String;
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: aload 5
arraylength
istore 7
start local 7 7: goto 46
8: StackMap locals: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl io.vertx.core.Handler io.vertx.ext.web.RoutingContext io.vertx.core.AsyncResult io.vertx.ext.auth.htdigest.HtdigestCredentials java.lang.String[] int int
StackMap stack:
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.PARSER:Ljava/util/regex/Pattern;
aload 5
iload 6
aaload
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 8
start local 8 9: aload 8
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 45
10: aload 8
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
dup
astore 9
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 11
-1355678356: 11
-1077554975: 12
-1010695135: 13
-340323263: 14
-265713450: 15
3509: 16
112146: 17
116076: 18
105002991: 19
108386959: 20
225490031: 21
default: 44
}
StackMap locals: java.util.regex.Matcher java.lang.String
StackMap stack:
11: aload 9
ldc "cnonce"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 24
goto 44
StackMap locals:
StackMap stack:
12: aload 9
ldc "method"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
goto 44
StackMap locals:
StackMap stack:
13: aload 9
ldc "opaque"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
goto 44
StackMap locals:
StackMap stack:
14: aload 9
ldc "response"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 38
goto 44
StackMap locals:
StackMap stack:
15: aload 9
ldc "username"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 42
goto 44
StackMap locals:
StackMap stack:
16: aload 9
ldc "nc"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
goto 44
StackMap locals:
StackMap stack:
17: aload 9
ldc "qop"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 34
goto 44
StackMap locals:
StackMap stack:
18: aload 9
ldc "uri"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 40
goto 44
StackMap locals:
StackMap stack:
19: aload 9
ldc "nonce"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 30
goto 44
StackMap locals:
StackMap stack:
20: aload 9
ldc "realm"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 36
goto 44
StackMap locals:
StackMap stack:
21: aload 9
ldc "algorithm"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 22
goto 44
22: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setAlgorithm:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
23: goto 45
24: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setCnonce:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
25: goto 45
26: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setMethod:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
27: goto 45
28: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setNc:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
29: goto 45
30: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setNonce:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
31: goto 45
32: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setOpaque:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
33: goto 45
34: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setQop:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
35: goto 45
36: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setRealm:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
37: goto 45
38: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setResponse:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
39: goto 45
40: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setUri:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
41: goto 45
42: StackMap locals:
StackMap stack:
aload 4
aload 8
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setUsername:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
43: goto 45
44: StackMap locals:
StackMap stack:
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.LOG:Lio/vertx/core/impl/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Uknown parameter: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface io.vertx.core.impl.logging.Logger.info:(Ljava/lang/Object;)V
45: StackMap locals:
StackMap stack:
iinc 6 1
end local 8 46: StackMap locals:
StackMap stack:
iload 6
iload 7
if_icmplt 8
47: aload 4
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.getNonce:()Ljava/lang/String;
astore 8
start local 8 48: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 8
invokeinterface io.vertx.core.shareddata.LocalMap.containsKey:(Ljava/lang/Object;)Z
ifne 51
49: aload 1
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.UNAUTHORIZED:Lio/vertx/ext/web/handler/impl/HttpStatusException;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
50: return
51: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.getQop:()Ljava/lang/String;
ifnull 61
52: aload 4
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.getNc:()Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 9
start local 9 53: aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 8
invokeinterface io.vertx.core.shareddata.LocalMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce
astore 10
start local 10 54: iload 9
aload 10
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce.count:I
if_icmpgt 57
55: aload 1
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.UNAUTHORIZED:Lio/vertx/ext/web/handler/impl/HttpStatusException;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
56: return
57: StackMap locals: int io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.nonces:Lio/vertx/core/shareddata/LocalMap;
aload 8
new io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce
dup
aload 10
getfield io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce.createdAt:J
iload 9
invokespecial io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce.<init>:(JI)V
invokeinterface io.vertx.core.shareddata.LocalMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 58: goto 61
StackMap locals: io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl io.vertx.core.Handler io.vertx.ext.web.RoutingContext io.vertx.core.AsyncResult io.vertx.ext.auth.htdigest.HtdigestCredentials
StackMap stack: java.lang.RuntimeException
59: astore 5
start local 5 60: aload 1
aload 5
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 5 61: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.session:()Lio/vertx/ext/web/Session;
astore 5
start local 5 62: aload 5
ifnull 67
63: aload 5
invokeinterface io.vertx.ext.web.Session.data:()Ljava/util/Map;
ldc "opaque"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 64: aload 6
ifnull 67
aload 6
aload 4
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.getOpaque:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 67
65: aload 1
getstatic io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl.UNAUTHORIZED:Lio/vertx/ext/web/handler/impl/HttpStatusException;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
66: return
end local 6 67: StackMap locals: io.vertx.ext.web.Session
StackMap stack:
aload 4
aload 2
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
invokeinterface io.vertx.core.http.HttpServerRequest.method:()Lio/vertx/core/http/HttpMethod;
invokevirtual io.vertx.core.http.HttpMethod.name:()Ljava/lang/String;
invokevirtual io.vertx.ext.auth.htdigest.HtdigestCredentials.setMethod:(Ljava/lang/String;)Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
pop
68: aload 1
aload 4
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 5 end local 4 69: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 70 0 this Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl;
0 70 3 parseAuthorization Lio/vertx/core/AsyncResult<Ljava/lang/String;>;
4 69 4 authInfo Lio/vertx/ext/auth/htdigest/HtdigestCredentials;
5 58 5 tokens [Ljava/lang/String;
6 58 6 i I
7 58 7 len I
9 46 8 m Ljava/util/regex/Matcher;
48 58 8 nonce Ljava/lang/String;
53 58 9 nc I
54 58 10 n Lio/vertx/ext/web/handler/impl/DigestAuthHandlerImpl$Nonce;
60 61 5 e Ljava/lang/RuntimeException;
62 69 5 session Lio/vertx/ext/web/Session;
64 67 6 opaque Ljava/lang/String;
Exception table:
from to target type
4 50 59 Class java.lang.RuntimeException
51 56 59 Class java.lang.RuntimeException
57 58 59 Class java.lang.RuntimeException
}
Signature: Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler<Lio/vertx/ext/auth/htdigest/HtdigestAuth;>;Lio/vertx/ext/web/handler/DigestAuthHandler;
SourceFile: "DigestAuthHandlerImpl.java"
NestMembers:
io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce
InnerClasses:
private Nonce = io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl$Nonce of io.vertx.ext.web.handler.impl.DigestAuthHandlerImpl
final Type = io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type of io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles