public abstract class org.apache.cassandra.cql3.statements.PermissionsManagementStatement extends org.apache.cassandra.cql3.statements.AuthorizationStatement
  minor version: 0
  major version: 59
  flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
  this_class: org.apache.cassandra.cql3.statements.PermissionsManagementStatement
  super_class: org.apache.cassandra.cql3.statements.AuthorizationStatement
{
  protected final java.util.Set<org.apache.cassandra.auth.Permission> permissions;
    descriptor: Ljava/util/Set;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL
    Signature: Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;

  protected org.apache.cassandra.auth.IResource resource;
    descriptor: Lorg/apache/cassandra/auth/IResource;
    flags: (0x0004) ACC_PROTECTED

  protected final org.apache.cassandra.auth.RoleResource grantee;
    descriptor: Lorg/apache/cassandra/auth/RoleResource;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  protected void <init>(java.util.Set<org.apache.cassandra.auth.Permission>, org.apache.cassandra.auth.IResource, org.apache.cassandra.cql3.RoleName);
    descriptor: (Ljava/util/Set;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/cql3/RoleName;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=4, args_size=4
        start local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
        start local 1 // java.util.Set permissions
        start local 2 // org.apache.cassandra.auth.IResource resource
        start local 3 // org.apache.cassandra.cql3.RoleName grantee
         0: .line 37
            aload 0 /* this */
            invokespecial org.apache.cassandra.cql3.statements.AuthorizationStatement.<init>:()V
         1: .line 39
            aload 0 /* this */
            aload 1 /* permissions */
            putfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.permissions:Ljava/util/Set;
         2: .line 40
            aload 0 /* this */
            aload 2 /* resource */
            putfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
         3: .line 41
            aload 0 /* this */
            aload 3 /* grantee */
            invokevirtual org.apache.cassandra.cql3.RoleName.getName:()Ljava/lang/String;
            invokestatic org.apache.cassandra.auth.RoleResource.role:(Ljava/lang/String;)Lorg/apache/cassandra/auth/RoleResource;
            putfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.grantee:Lorg/apache/cassandra/auth/RoleResource;
         4: .line 42
            return
        end local 3 // org.apache.cassandra.cql3.RoleName grantee
        end local 2 // org.apache.cassandra.auth.IResource resource
        end local 1 // java.util.Set permissions
        end local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/apache/cassandra/cql3/statements/PermissionsManagementStatement;
            0    5     1  permissions  Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;
            0    5     2     resource  Lorg/apache/cassandra/auth/IResource;
            0    5     3      grantee  Lorg/apache/cassandra/cql3/RoleName;
    Signature: (Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/cql3/RoleName;)V
    MethodParameters:
             Name  Flags
      permissions  
      resource     
      grantee      

  public void validate(org.apache.cassandra.service.ClientState);
    descriptor: (Lorg/apache/cassandra/service/ClientState;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=2, args_size=2
        start local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
        start local 1 // org.apache.cassandra.service.ClientState state
         0: .line 47
            aload 1 /* state */
            invokevirtual org.apache.cassandra.service.ClientState.ensureNotAnonymous:()V
         1: .line 49
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.grantee:Lorg/apache/cassandra/auth/RoleResource;
            invokeinterface org.apache.cassandra.auth.IRoleManager.isExistingRole:(Lorg/apache/cassandra/auth/RoleResource;)Z
            ifne 3
         2: .line 50
            new org.apache.cassandra.exceptions.InvalidRequestException
            dup
            ldc "Role %s doesn't exist"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.grantee:Lorg/apache/cassandra/auth/RoleResource;
            invokevirtual org.apache.cassandra.auth.RoleResource.getRoleName:()Ljava/lang/String;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 54
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            aload 1 /* state */
            invokestatic org.apache.cassandra.cql3.statements.PermissionsManagementStatement.maybeCorrectResource:(Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/service/ClientState;)Lorg/apache/cassandra/auth/IResource;
            putfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
         4: .line 57
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            instanceof org.apache.cassandra.auth.FunctionResource
            ifeq 7
         5: .line 58
            ldc "system"
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            checkcast org.apache.cassandra.auth.FunctionResource
            invokevirtual org.apache.cassandra.auth.FunctionResource.getKeyspace:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         6: .line 60
            new org.apache.cassandra.exceptions.InvalidRequestException
            dup
            ldc "Altering permissions on builtin functions is not supported"
            invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 63
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            invokeinterface org.apache.cassandra.auth.IResource.exists:()Z
            ifne 9
         8: .line 64
            new org.apache.cassandra.exceptions.InvalidRequestException
            dup
            ldc "Resource %s doesn't exist"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.apache.cassandra.exceptions.InvalidRequestException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 65
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.apache.cassandra.service.ClientState state
        end local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   10     0   this  Lorg/apache/cassandra/cql3/statements/PermissionsManagementStatement;
            0   10     1  state  Lorg/apache/cassandra/service/ClientState;
    Exceptions:
      throws org.apache.cassandra.exceptions.RequestValidationException
    MethodParameters:
       Name  Flags
      state  

  public void checkAccess(org.apache.cassandra.service.ClientState);
    descriptor: (Lorg/apache/cassandra/service/ClientState;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
        start local 1 // org.apache.cassandra.service.ClientState state
         0: .line 70
            aload 0 /* this */
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            aload 1 /* state */
            invokestatic org.apache.cassandra.cql3.statements.PermissionsManagementStatement.maybeCorrectResource:(Lorg/apache/cassandra/auth/IResource;Lorg/apache/cassandra/service/ClientState;)Lorg/apache/cassandra/auth/IResource;
            putfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
         1: .line 73
            aload 1 /* state */
            getstatic org.apache.cassandra.auth.Permission.AUTHORIZE:Lorg/apache/cassandra/auth/Permission;
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            invokevirtual org.apache.cassandra.service.ClientState.ensureHasPermission:(Lorg/apache/cassandra/auth/Permission;Lorg/apache/cassandra/auth/IResource;)V
         2: .line 76
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.permissions:Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 3
            goto 5
      StackMap locals: org.apache.cassandra.cql3.statements.PermissionsManagementStatement org.apache.cassandra.service.ClientState top java.util.Iterator
      StackMap stack:
         3: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.apache.cassandra.auth.Permission
            astore 2 /* p */
        start local 2 // org.apache.cassandra.auth.Permission p
         4: .line 77
            aload 1 /* state */
            aload 2 /* p */
            aload 0 /* this */
            getfield org.apache.cassandra.cql3.statements.PermissionsManagementStatement.resource:Lorg/apache/cassandra/auth/IResource;
            invokevirtual org.apache.cassandra.service.ClientState.ensureHasPermission:(Lorg/apache/cassandra/auth/Permission;Lorg/apache/cassandra/auth/IResource;)V
        end local 2 // org.apache.cassandra.auth.Permission p
         5: .line 76
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         6: .line 78
            return
        end local 1 // org.apache.cassandra.service.ClientState state
        end local 0 // org.apache.cassandra.cql3.statements.PermissionsManagementStatement this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    7     0   this  Lorg/apache/cassandra/cql3/statements/PermissionsManagementStatement;
            0    7     1  state  Lorg/apache/cassandra/service/ClientState;
            4    5     2      p  Lorg/apache/cassandra/auth/Permission;
    Exceptions:
      throws org.apache.cassandra.exceptions.UnauthorizedException
    MethodParameters:
       Name  Flags
      state  
}
SourceFile: "PermissionsManagementStatement.java"