public abstract class io.vertx.ext.auth.AbstractUser implements io.vertx.ext.auth.User, io.vertx.core.shareddata.impl.ClusterSerializable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.vertx.ext.auth.AbstractUser
super_class: java.lang.Object
{
private final java.util.Set<java.lang.String> cachedPermissions;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/AbstractUser;
public io.vertx.ext.auth.User isAuthorized(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/ext/auth/User;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 3
1: aload 2
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
aload 1
aload 2
invokedynamic handle(Lio/vertx/ext/auth/AbstractUser;Ljava/lang/String;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/AbstractUser.lambda$0(Ljava/lang/String;Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (7)
(Lio/vertx/core/AsyncResult;)V
invokevirtual io.vertx.ext.auth.AbstractUser.doIsPermitted:(Ljava/lang/String;Lio/vertx/core/Handler;)V
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/auth/AbstractUser;
0 5 1 authority Ljava/lang/String;
0 5 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Boolean;>;>;
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Boolean;>;>;)Lio/vertx/ext/auth/User;
MethodParameters:
Name Flags
authority
resultHandler
public io.vertx.ext.auth.User clearCache();
descriptor: ()Lio/vertx/ext/auth/User;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/AbstractUser;
public void writeToBuffer(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
invokevirtual io.vertx.ext.auth.AbstractUser.writeStringSet:(Lio/vertx/core/buffer/Buffer;Ljava/util/Set;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/AbstractUser;
0 2 1 buff Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
buff
public int readFromBuffer(int, io.vertx.core.buffer.Buffer);
descriptor: (ILio/vertx/core/buffer/Buffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
aload 0
getfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
iload 1
invokevirtual io.vertx.ext.auth.AbstractUser.readStringSet:(Lio/vertx/core/buffer/Buffer;Ljava/util/Set;I)I
istore 1
1: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/AbstractUser;
0 2 1 pos I
0 2 2 buffer Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
pos
buffer
public boolean cachePermission(java.lang.String);
descriptor: (Ljava/lang/String;)Z
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.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/auth/AbstractUser;
0 1 1 authority Ljava/lang/String;
MethodParameters:
Name Flags
authority
protected abstract void doIsPermitted(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Boolean;>;>;)V
MethodParameters:
Name Flags
permission
resultHandler
private void writeStringSet(io.vertx.core.buffer.Buffer, java.util.Set<java.lang.String>);
descriptor: (Lio/vertx/core/buffer/Buffer;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack: io.vertx.core.buffer.Buffer
1: aload 2
invokeinterface java.util.Set.size:()I
StackMap locals: io.vertx.ext.auth.AbstractUser io.vertx.core.buffer.Buffer java.util.Set
StackMap stack: io.vertx.core.buffer.Buffer int
2: invokeinterface io.vertx.core.buffer.Buffer.appendInt:(I)Lio/vertx/core/buffer/Buffer;
pop
3: aload 2
ifnull 9
4: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: io.vertx.ext.auth.AbstractUser io.vertx.core.buffer.Buffer java.util.Set top java.util.Iterator
StackMap stack:
5: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 6: aload 3
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 5
start local 5 7: aload 1
aload 5
arraylength
invokeinterface io.vertx.core.buffer.Buffer.appendInt:(I)Lio/vertx/core/buffer/Buffer;
aload 5
invokeinterface io.vertx.core.buffer.Buffer.appendBytes:([B)Lio/vertx/core/buffer/Buffer;
pop
end local 5 end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
9: StackMap locals: io.vertx.ext.auth.AbstractUser io.vertx.core.buffer.Buffer java.util.Set
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/ext/auth/AbstractUser;
0 10 1 buff Lio/vertx/core/buffer/Buffer;
0 10 2 set Ljava/util/Set<Ljava/lang/String;>;
6 8 3 entry Ljava/lang/String;
7 8 5 bytes [B
Signature: (Lio/vertx/core/buffer/Buffer;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
buff
set
private int readStringSet(io.vertx.core.buffer.Buffer, java.util.Set<java.lang.String>, );
descriptor: (Lio/vertx/core/buffer/Buffer;Ljava/util/Set;I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 3
invokeinterface io.vertx.core.buffer.Buffer.getInt:(I)I
istore 4
start local 4 1: iinc 3 4
2: iconst_0
istore 5
start local 5 3: goto 10
4: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokeinterface io.vertx.core.buffer.Buffer.getInt:(I)I
istore 6
start local 6 5: iinc 3 4
6: aload 1
iload 3
iload 3
iload 6
iadd
invokeinterface io.vertx.core.buffer.Buffer.getBytes:(II)[B
astore 7
start local 7 7: iload 3
iload 6
iadd
istore 3
8: aload 2
new java.lang.String
dup
aload 7
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 4
if_icmplt 4
end local 5 11: 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 12 0 this Lio/vertx/ext/auth/AbstractUser;
0 12 1 buffer Lio/vertx/core/buffer/Buffer;
0 12 2 set Ljava/util/Set<Ljava/lang/String;>;
0 12 3 pos I
1 12 4 num I
3 11 5 i I
5 9 6 len I
7 9 7 bytes [B
Signature: (Lio/vertx/core/buffer/Buffer;Ljava/util/Set<Ljava/lang/String;>;I)I
MethodParameters:
Name Flags
buffer
set
pos
private void lambda$0(java.lang.String, io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 3
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 3
2: aload 0
getfield io.vertx.ext.auth.AbstractUser.cachedPermissions:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
4: return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/auth/AbstractUser;
0 5 3 res Lio/vertx/core/AsyncResult<Ljava/lang/Boolean;>;
}
SourceFile: "AbstractUser.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles