abstract class io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler<T extends io.vertx.ext.auth.authentication.AuthenticationProvider> extends io.vertx.ext.web.handler.impl.AuthenticationHandlerImpl<T>
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler
super_class: io.vertx.ext.web.handler.impl.AuthenticationHandlerImpl
{
protected final io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type type;
descriptor: Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
void <init>(T, io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type);
descriptor: (Lio/vertx/ext/auth/authentication/AuthenticationProvider;Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial io.vertx.ext.web.handler.impl.AuthenticationHandlerImpl.<init>:(Lio/vertx/ext/auth/authentication/AuthenticationProvider;)V
1: aload 0
aload 2
putfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.type:Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler<TT;>;
0 3 1 authProvider TT;
0 3 2 type Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
Signature: (TT;Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;)V
MethodParameters:
Name Flags
authProvider
type
void <init>(T, java.lang.String, io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type);
descriptor: (Lio/vertx/ext/auth/authentication/AuthenticationProvider;Ljava/lang/String;Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokespecial io.vertx.ext.web.handler.impl.AuthenticationHandlerImpl.<init>:(Lio/vertx/ext/auth/authentication/AuthenticationProvider;Ljava/lang/String;)V
1: aload 0
aload 3
putfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.type:Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler<TT;>;
0 3 1 authProvider TT;
0 3 2 realm Ljava/lang/String;
0 3 3 type Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
Signature: (TT;Ljava/lang/String;Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;)V
MethodParameters:
Name Flags
authProvider
realm
type
protected final void parseAuthorization(io.vertx.ext.web.RoutingContext, boolean, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>);
descriptor: (Lio/vertx/ext/web/RoutingContext;ZLio/vertx/core/Handler;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface io.vertx.ext.web.RoutingContext.request:()Lio/vertx/core/http/HttpServerRequest;
astore 4
start local 4 1: aload 4
invokeinterface io.vertx.core.http.HttpServerRequest.headers:()Lio/vertx/core/MultiMap;
getstatic io.vertx.core.http.HttpHeaders.AUTHORIZATION:Ljava/lang/CharSequence;
invokeinterface io.vertx.core.MultiMap.get:(Ljava/lang/CharSequence;)Ljava/lang/String;
astore 5
start local 5 2: aload 5
ifnonnull 8
3: iload 2
ifeq 6
4: aload 3
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
5: goto 7
6: StackMap locals: io.vertx.core.http.HttpServerRequest java.lang.String
StackMap stack:
aload 3
getstatic io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.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
7: StackMap locals:
StackMap stack:
return
8: StackMap locals:
StackMap stack:
aload 5
bipush 32
invokevirtual java.lang.String.indexOf:(I)I
istore 6
start local 6 9: iload 6
ifgt 12
10: aload 3
getstatic io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.BAD_REQUEST: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
11: return
12: StackMap locals: int
StackMap stack:
aload 0
getfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.type:Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
aload 5
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type.is:(Ljava/lang/String;)Z
ifne 15
13: aload 3
getstatic io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.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
14: return
15: StackMap locals:
StackMap stack:
aload 3
aload 5
iload 6
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
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 6 16: goto 19
StackMap locals: io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler io.vertx.ext.web.RoutingContext int io.vertx.core.Handler io.vertx.core.http.HttpServerRequest java.lang.String
StackMap stack: java.lang.RuntimeException
17: astore 6
start local 6 18: aload 3
aload 6
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 6 19: StackMap locals:
StackMap stack:
return
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 20 0 this Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler<TT;>;
0 20 1 ctx Lio/vertx/ext/web/RoutingContext;
0 20 2 optional Z
0 20 3 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/String;>;>;
1 20 4 request Lio/vertx/core/http/HttpServerRequest;
2 20 5 authorization Ljava/lang/String;
9 16 6 idx I
18 19 6 e Ljava/lang/RuntimeException;
Exception table:
from to target type
8 11 17 Class java.lang.RuntimeException
12 14 17 Class java.lang.RuntimeException
15 16 17 Class java.lang.RuntimeException
Signature: (Lio/vertx/ext/web/RoutingContext;ZLio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/String;>;>;)V
MethodParameters:
Name Flags
ctx
optional
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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.realm:Ljava/lang/String;
ifnull 2
aload 0
getfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.realm:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifle 2
1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.type:Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler$Type;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " realm=\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler.realm:Ljava/lang/String;
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
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/handler/impl/HTTPAuthorizationHandler<TT;>;
0 3 1 context Lio/vertx/ext/web/RoutingContext;
MethodParameters:
Name Flags
context
}
Signature: <T::Lio/vertx/ext/auth/authentication/AuthenticationProvider;>Lio/vertx/ext/web/handler/impl/AuthenticationHandlerImpl<TT;>;
SourceFile: "HTTPAuthorizationHandler.java"
NestMembers:
io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type
InnerClasses:
final Type = io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler$Type of io.vertx.ext.web.handler.impl.HTTPAuthorizationHandler