public class io.vertx.ext.auth.shiro.impl.ShiroUser extends io.vertx.ext.auth.AbstractUser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.auth.shiro.impl.ShiroUser
super_class: io.vertx.ext.auth.AbstractUser
{
private io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0002) ACC_PRIVATE
private org.apache.shiro.mgt.SecurityManager securityManager;
descriptor: Lorg/apache/shiro/mgt/SecurityManager;
flags: (0x0002) ACC_PRIVATE
private java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private org.apache.shiro.subject.Subject subject;
descriptor: Lorg/apache/shiro/subject/Subject;
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.json.JsonObject principal;
descriptor: Lio/vertx/core/json/JsonObject;
flags: (0x0002) ACC_PRIVATE
private java.lang.String rolePrefix;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(io.vertx.core.Vertx, org.apache.shiro.mgt.SecurityManager, org.apache.shiro.subject.Subject, java.lang.String);
descriptor: (Lio/vertx/core/Vertx;Lorg/apache/shiro/mgt/SecurityManager;Lorg/apache/shiro/subject/Subject;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial io.vertx.ext.auth.AbstractUser.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.vertx:Lio/vertx/core/Vertx;
2: aload 0
aload 2
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
3: aload 0
aload 4
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.rolePrefix:Ljava/lang/String;
4: aload 0
aload 3
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.subject:Lorg/apache/shiro/subject/Subject;
5: aload 0
aload 3
invokeinterface org.apache.shiro.subject.Subject.getPrincipal:()Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.username:Ljava/lang/String;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 7 1 vertx Lio/vertx/core/Vertx;
0 7 2 securityManager Lorg/apache/shiro/mgt/SecurityManager;
0 7 3 subject Lorg/apache/shiro/subject/Subject;
0 7 4 rolePrefix Ljava/lang/String;
MethodParameters:
Name Flags
vertx
securityManager
subject
rolePrefix
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.vertx.ext.auth.AbstractUser.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
protected 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: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.rolePrefix:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
1: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.vertx:Lio/vertx/core/Vertx;
aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/auth/shiro/impl/ShiroUser;Ljava/lang/String;)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/shiro/impl/ShiroUser.lambda$0(Ljava/lang/String;Lio/vertx/core/Promise;)V (7)
(Lio/vertx/core/Promise;)V
2: aload 2
3: invokeinterface io.vertx.core.Vertx.executeBlocking:(Lio/vertx/core/Handler;Lio/vertx/core/Handler;)V
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.vertx:Lio/vertx/core/Vertx;
aload 0
aload 1
invokedynamic handle(Lio/vertx/ext/auth/shiro/impl/ShiroUser;Ljava/lang/String;)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/shiro/impl/ShiroUser.lambda$1(Ljava/lang/String;Lio/vertx/core/Promise;)V (7)
(Lio/vertx/core/Promise;)V
6: aload 2
7: invokeinterface io.vertx.core.Vertx.executeBlocking:(Lio/vertx/core/Handler;Lio/vertx/core/Handler;)V
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 9 1 permissionOrRole Ljava/lang/String;
0 9 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;>;>;)V
MethodParameters:
Name Flags
permissionOrRole
resultHandler
public io.vertx.core.json.JsonObject principal();
descriptor: ()Lio/vertx/core/json/JsonObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.principal:Lio/vertx/core/json/JsonObject;
ifnonnull 2
1: aload 0
new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "username"
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.username:Ljava/lang/String;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/json/JsonObject;
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.principal:Lio/vertx/core/json/JsonObject;
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.principal:Lio/vertx/core/json/JsonObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
public void writeToBuffer(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.vertx.ext.auth.AbstractUser.writeToBuffer:(Lio/vertx/core/buffer/Buffer;)V
1: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.username:Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 2
start local 2 2: aload 1
aload 2
arraylength
invokeinterface io.vertx.core.buffer.Buffer.appendInt:(I)Lio/vertx/core/buffer/Buffer;
aload 2
invokeinterface io.vertx.core.buffer.Buffer.appendBytes:([B)Lio/vertx/core/buffer/Buffer;
pop
3: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.rolePrefix:Ljava/lang/String;
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 2
4: aload 1
aload 2
arraylength
invokeinterface io.vertx.core.buffer.Buffer.appendInt:(I)Lio/vertx/core/buffer/Buffer;
pop
5: aload 1
aload 2
invokeinterface io.vertx.core.buffer.Buffer.appendBytes:([B)Lio/vertx/core/buffer/Buffer;
pop
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 7 1 buff Lio/vertx/core/buffer/Buffer;
2 7 2 bytes [B
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=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
invokespecial io.vertx.ext.auth.AbstractUser.readFromBuffer:(ILio/vertx/core/buffer/Buffer;)I
istore 1
1: aload 2
iload 1
invokeinterface io.vertx.core.buffer.Buffer.getInt:(I)I
istore 3
start local 3 2: iinc 1 4
3: aload 2
iload 1
iload 1
iload 3
iadd
invokeinterface io.vertx.core.buffer.Buffer.getBytes:(II)[B
astore 4
start local 4 4: aload 0
new java.lang.String
dup
aload 4
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.username:Ljava/lang/String;
5: iload 1
iload 3
iadd
istore 1
6: aload 2
iload 1
invokeinterface io.vertx.core.buffer.Buffer.getInt:(I)I
istore 3
7: iinc 1 4
8: aload 2
iload 1
iload 1
iload 3
iadd
invokeinterface io.vertx.core.buffer.Buffer.getBytes:(II)[B
astore 4
9: aload 0
new java.lang.String
dup
aload 4
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial java.lang.String.<init>:([BLjava/nio/charset/Charset;)V
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.rolePrefix:Ljava/lang/String;
10: iload 1
iload 3
iadd
istore 1
11: iload 1
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/shiro/impl/ShiroUser;
0 12 1 pos I
0 12 2 buffer Lio/vertx/core/buffer/Buffer;
2 12 3 len I
4 12 4 bytes [B
MethodParameters:
Name Flags
pos
buffer
public void setAuthProvider(io.vertx.ext.auth.AuthProvider);
descriptor: (Lio/vertx/ext/auth/AuthProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof io.vertx.ext.auth.shiro.impl.ShiroAuthProviderImpl
ifeq 10
1: aload 1
checkcast io.vertx.ext.auth.shiro.impl.ShiroAuthProviderImpl
astore 2
start local 2 2: aload 0
aload 2
invokevirtual io.vertx.ext.auth.shiro.impl.ShiroAuthProviderImpl.getVertx:()Lio/vertx/core/Vertx;
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.vertx:Lio/vertx/core/Vertx;
3: aload 0
aload 2
invokevirtual io.vertx.ext.auth.shiro.impl.ShiroAuthProviderImpl.getSecurityManager:()Lorg/apache/shiro/mgt/SecurityManager;
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
4: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
invokestatic org.apache.shiro.SecurityUtils.setSecurityManager:(Lorg/apache/shiro/mgt/SecurityManager;)V
5: new org.apache.shiro.subject.support.DefaultSubjectContext
dup
invokespecial org.apache.shiro.subject.support.DefaultSubjectContext.<init>:()V
astore 3
start local 3 6: new org.apache.shiro.subject.SimplePrincipalCollection
dup
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.username:Ljava/lang/String;
aload 2
invokevirtual io.vertx.ext.auth.shiro.impl.ShiroAuthProviderImpl.getRealmName:()Ljava/lang/String;
invokespecial org.apache.shiro.subject.SimplePrincipalCollection.<init>:(Ljava/lang/Object;Ljava/lang/String;)V
astore 4
start local 4 7: aload 3
aload 4
invokeinterface org.apache.shiro.subject.SubjectContext.setPrincipals:(Lorg/apache/shiro/subject/PrincipalCollection;)V
8: aload 0
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
aload 3
invokeinterface org.apache.shiro.mgt.SecurityManager.createSubject:(Lorg/apache/shiro/subject/SubjectContext;)Lorg/apache/shiro/subject/Subject;
putfield io.vertx.ext.auth.shiro.impl.ShiroUser.subject:Lorg/apache/shiro/subject/Subject;
end local 4 end local 3 end local 2 9: goto 11
10: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Not a ShiroAuthProviderImpl"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 12 1 authProvider Lio/vertx/ext/auth/AuthProvider;
2 9 2 shiroAuthProvider Lio/vertx/ext/auth/shiro/impl/ShiroAuthProviderImpl;
6 9 3 subjectContext Lorg/apache/shiro/subject/SubjectContext;
7 9 4 coll Lorg/apache/shiro/subject/PrincipalCollection;
MethodParameters:
Name Flags
authProvider
private void lambda$0(java.lang.String, io.vertx.core.Promise);
descriptor: (Ljava/lang/String;Lio/vertx/core/Promise;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: aload 1
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.rolePrefix:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
invokestatic org.apache.shiro.SecurityUtils.setSecurityManager:(Lorg/apache/shiro/mgt/SecurityManager;)V
2: aload 2
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.subject:Lorg/apache/shiro/subject/Subject;
aload 3
invokeinterface org.apache.shiro.subject.Subject.hasRole:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
end local 3 3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 4 2 fut Lio/vertx/core/Promise<Ljava/lang/Boolean;>;
1 3 3 role Ljava/lang/String;
private void lambda$1(java.lang.String, io.vertx.core.Promise);
descriptor: (Ljava/lang/String;Lio/vertx/core/Promise;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.securityManager:Lorg/apache/shiro/mgt/SecurityManager;
invokestatic org.apache.shiro.SecurityUtils.setSecurityManager:(Lorg/apache/shiro/mgt/SecurityManager;)V
1: aload 2
aload 0
getfield io.vertx.ext.auth.shiro.impl.ShiroUser.subject:Lorg/apache/shiro/subject/Subject;
aload 1
invokeinterface org.apache.shiro.subject.Subject.isPermitted:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/auth/shiro/impl/ShiroUser;
0 3 2 fut Lio/vertx/core/Promise<Ljava/lang/Boolean;>;
}
SourceFile: "ShiroUser.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles