abstract class io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow implements io.vertx.ext.auth.oauth2.impl.flow.OAuth2Flow
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow
super_class: java.lang.Object
{
protected final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final io.vertx.ext.auth.oauth2.OAuth2ClientOptions config;
descriptor: Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
void <init>(io.vertx.core.Vertx, io.vertx.ext.auth.oauth2.OAuth2ClientOptions);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.vertx:Lio/vertx/core/Vertx;
2: aload 0
aload 2
putfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/oauth2/impl/flow/AbstractOAuth2Flow;
0 4 1 vertx Lio/vertx/core/Vertx;
0 4 2 config Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
MethodParameters:
Name Flags
vertx
config
static void throwIfNull(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Configuration missing. You need to specify ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key Ljava/lang/String;
0 3 1 value Ljava/lang/Object;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
key
value
void getToken(java.lang.String, io.vertx.core.json.JsonObject, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler;)V
flags: (0x0000)
Code:
stack=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 4
start local 4 1: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.isUseBasicAuthorizationHeader:()Z
ifeq 4
2: new java.lang.StringBuilder
dup
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientID:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientSecret:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 3: aload 4
ldc "Authorization"
new java.lang.StringBuilder
dup
ldc "Basic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
aload 5
invokevirtual java.lang.String.getBytes:()[B
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
end local 5 4: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getHeaders:()Lio/vertx/core/json/JsonObject;
astore 5
start local 5 5: aload 5
ifnull 7
6: aload 4
aload 5
invokevirtual io.vertx.core.json.JsonObject.mergeIn:(Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
7: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 2
invokevirtual io.vertx.core.json.JsonObject.copy:()Lio/vertx/core/json/JsonObject;
astore 6
start local 6 8: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getExtraParameters:()Lio/vertx/core/json/JsonObject;
ifnull 10
9: aload 6
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getExtraParameters:()Lio/vertx/core/json/JsonObject;
invokevirtual io.vertx.core.json.JsonObject.mergeIn:(Lio/vertx/core/json/JsonObject;)Lio/vertx/core/json/JsonObject;
pop
10: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 6
ldc "client_id"
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientID:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
11: aload 6
ldc "grant_type"
aload 1
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
12: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientSecretParameterName:()Ljava/lang/String;
ifnull 14
13: aload 6
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientSecretParameterName:()Ljava/lang/String;
aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getClientSecret:()Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
14: StackMap locals:
StackMap stack:
aload 4
ldc "Content-Type"
ldc "application/x-www-form-urlencoded"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
15: aload 6
invokestatic io.vertx.ext.auth.oauth2.impl.OAuth2API.stringify:(Lio/vertx/core/json/JsonObject;)Ljava/lang/String;
invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
astore 7
start local 7 16: aload 4
ldc "Accept"
ldc "application/json,application/x-www-form-urlencoded;q=0.9"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
pop
17: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.vertx:Lio/vertx/core/Vertx;
18: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
19: getstatic io.vertx.core.http.HttpMethod.POST:Lio/vertx/core/http/HttpMethod;
20: aload 0
getfield io.vertx.ext.auth.oauth2.impl.flow.AbstractOAuth2Flow.config:Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;
invokevirtual io.vertx.ext.auth.oauth2.OAuth2ClientOptions.getTokenPath:()Ljava/lang/String;
21: aload 4
22: aload 7
23: aload 3
invokedynamic handle(Lio/vertx/core/Handler;)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/auth/oauth2/impl/flow/AbstractOAuth2Flow.lambda$0(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
24: invokestatic io.vertx.ext.auth.oauth2.impl.OAuth2API.fetch:(Lio/vertx/core/Vertx;Lio/vertx/ext/auth/oauth2/OAuth2ClientOptions;Lio/vertx/core/http/HttpMethod;Ljava/lang/String;Lio/vertx/core/json/JsonObject;Lio/vertx/core/buffer/Buffer;Lio/vertx/core/Handler;)V
25: return
end local 7 end local 6 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 26 0 this Lio/vertx/ext/auth/oauth2/impl/flow/AbstractOAuth2Flow;
0 26 1 grantType Ljava/lang/String;
0 26 2 params Lio/vertx/core/json/JsonObject;
0 26 3 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/json/JsonObject;>;>;
1 26 4 headers Lio/vertx/core/json/JsonObject;
3 4 5 basic Ljava/lang/String;
5 26 5 tmp Lio/vertx/core/json/JsonObject;
8 26 6 form Lio/vertx/core/json/JsonObject;
16 26 7 payload Lio/vertx/core/buffer/Buffer;
Signature: (Ljava/lang/String;Lio/vertx/core/json/JsonObject;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/json/JsonObject;>;>;)V
MethodParameters:
Name Flags
grantType
params
handler
private static void lambda$0(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=6, args_size=2
start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 3
1: aload 0
aload 1
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:
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast io.vertx.ext.auth.oauth2.OAuth2Response
astore 2
start local 2 4: aload 2
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.body:()Lio/vertx/core/buffer/Buffer;
ifnull 5
aload 2
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.body:()Lio/vertx/core/buffer/Buffer;
invokeinterface io.vertx.core.buffer.Buffer.length:()I
ifne 7
5: StackMap locals: io.vertx.ext.auth.oauth2.OAuth2Response
StackMap stack:
aload 0
ldc "No Body"
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
6: return
7: StackMap locals:
StackMap stack:
aload 2
ldc "application/json"
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.is:(Ljava/lang/String;)Z
ifeq 13
8: aload 2
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.jsonObject:()Lio/vertx/core/json/JsonObject;
astore 3
start local 3 9: goto 21
end local 3 StackMap locals:
StackMap stack: java.lang.RuntimeException
10: astore 4
start local 4 11: aload 0
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
12: return
end local 4 13: StackMap locals:
StackMap stack:
aload 2
ldc "application/x-www-form-urlencoded"
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.is:(Ljava/lang/String;)Z
ifne 14
aload 2
ldc "text/plain"
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.is:(Ljava/lang/String;)Z
ifeq 19
14: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.body:()Lio/vertx/core/buffer/Buffer;
invokeinterface io.vertx.core.buffer.Buffer.toString:()Ljava/lang/String;
invokestatic io.vertx.ext.auth.oauth2.impl.OAuth2API.queryToJSON:(Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
astore 3
start local 3 15: goto 21
end local 3 StackMap locals:
StackMap stack: java.lang.Exception
16: astore 4
start local 4 17: aload 0
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
18: return
end local 4 19: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Cannot handle content type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface io.vertx.ext.auth.oauth2.OAuth2Response.headers:()Lio/vertx/core/MultiMap;
ldc "Content-Type"
invokeinterface io.vertx.core.MultiMap.get:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
20: return
start local 3 21: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 3
ldc "error"
invokevirtual io.vertx.core.json.JsonObject.containsKey:(Ljava/lang/String;)Z
ifeq 32
22: aload 3
ldc "error"
invokevirtual io.vertx.core.json.JsonObject.getValue:(Ljava/lang/String;)Ljava/lang/Object;
astore 5
start local 5 23: aload 5
instanceof io.vertx.core.json.JsonObject
ifeq 26
24: aload 5
checkcast io.vertx.core.json.JsonObject
ldc "message"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 25: goto 30
end local 4 26: StackMap locals: io.vertx.core.Handler io.vertx.core.AsyncResult io.vertx.ext.auth.oauth2.OAuth2Response io.vertx.core.json.JsonObject top java.lang.Object
StackMap stack:
aload 3
ldc "error_description"
aload 3
ldc "error"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 27: goto 30
end local 4 StackMap locals:
StackMap stack: java.lang.RuntimeException
28: pop
29: aload 5
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 4
start local 4 30: StackMap locals: io.vertx.core.Handler io.vertx.core.AsyncResult io.vertx.ext.auth.oauth2.OAuth2Response io.vertx.core.json.JsonObject java.lang.String java.lang.Object
StackMap stack:
aload 0
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 5 end local 4 31: goto 36
32: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
33: goto 36
StackMap locals:
StackMap stack: java.lang.RuntimeException
34: astore 4
start local 4 35: aload 0
aload 4
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 4 end local 3 end local 2 36: StackMap locals:
StackMap stack:
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 37 1 res Lio/vertx/core/AsyncResult<Lio/vertx/ext/auth/oauth2/OAuth2Response;>;
4 36 2 reply Lio/vertx/ext/auth/oauth2/OAuth2Response;
9 10 3 json Lio/vertx/core/json/JsonObject;
15 16 3 json Lio/vertx/core/json/JsonObject;
21 36 3 json Lio/vertx/core/json/JsonObject;
11 13 4 e Ljava/lang/RuntimeException;
17 19 4 e Ljava/lang/Exception;
25 26 4 description Ljava/lang/String;
27 28 4 description Ljava/lang/String;
30 31 4 description Ljava/lang/String;
23 31 5 error Ljava/lang/Object;
35 36 4 e Ljava/lang/RuntimeException;
Exception table:
from to target type
8 9 10 Class java.lang.RuntimeException
14 15 16 Class java.io.UnsupportedEncodingException
14 15 16 Class java.lang.RuntimeException
26 27 28 Class java.lang.RuntimeException
21 33 34 Class java.lang.RuntimeException
}
SourceFile: "AbstractOAuth2Flow.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Encoder = java.util.Base64$Encoder of java.util.Base64