Uses of Class
org.apache.cassandra.auth.RoleResource
Packages that use RoleResource
Package
Description
-
Uses of RoleResource in org.apache.cassandra.auth
Fields in org.apache.cassandra.auth declared as RoleResourceModifier and TypeFieldDescriptionfinal RoleResourceRole.resourceRepresents a user or group in the auth subsystem.Methods in org.apache.cassandra.auth that return RoleResourceModifier and TypeMethodDescriptionstatic RoleResourceParses a role resource name into a RoleResource instance.AuthenticatedUser.getPrimaryRole()static RoleResourceCreates a RoleResource representing an individual Role.static RoleResourceRoleResource.root()Methods in org.apache.cassandra.auth that return types with arguments of type RoleResourceModifier and TypeMethodDescriptionCassandraNetworkAuthorizer.bulkLoader()CassandraRoleManager.bulkLoader()CIDRPermissionsManager.bulkLoader()Function to bulk load role to cidr permissions cache This gets called when cache warmup is enabled in the configCassandraRoleManager.getAllRoles()We hard-code this query to Quorum regardless of the role or auth credentials of the queryer given the nature of this query: we expect to know *all* roles across the entire cluster when we query this, not just local quorum or on a single node.IRoleManager.getAllRoles()Called during the execution of an unqualified LIST ROLES query.static Set<RoleResource>Roles.getAllRoles()Enumerate all the roles in the system, preferably these will be fetched from the cache, which in turn may have been warmed during startup.AuthenticatedUser.getRoles()Get the roles that have been granted to the user via the IRoleManagerCassandraRoleManager.getRoles(RoleResource grantee, boolean includeInherited) IRoleManager.getRoles(RoleResource grantee, boolean includeInherited) Called during execution of a LIST ROLES query.static Set<RoleResource>Roles.getRoles(RoleResource primaryRole) Identify all roles granted to the supplied Role, including both directly granted and inherited roles.Methods in org.apache.cassandra.auth with parameters of type RoleResourceModifier and TypeMethodDescriptionvoidCassandraRoleManager.alterRole(AuthenticatedUser performer, RoleResource role, RoleOptions options) voidIRoleManager.alterRole(AuthenticatedUser performer, RoleResource role, RoleOptions options) Called during execution of ALTER ROLE statement.AllowAllNetworkAuthorizer.authorize(RoleResource role) CassandraNetworkAuthorizer.authorize(RoleResource role) INetworkAuthorizer.authorize(RoleResource role) Returns the dc permissions associated with the given rolebooleanCassandraRoleManager.canLogin(RoleResource role) booleanIRoleManager.canLogin(RoleResource role) Return true if there exists a Role with the given name which has login privileges.static booleanRoles.canLogin(RoleResource role) Returns true if the supplied role has the login privilege.intRoleResource.compareTo(RoleResource o) voidCassandraRoleManager.createRole(AuthenticatedUser performer, RoleResource role, RoleOptions options) voidIRoleManager.createRole(AuthenticatedUser performer, RoleResource role, RoleOptions options) Called during execution of a CREATE ROLE statement.voidAllowAllNetworkAuthorizer.drop(RoleResource role) voidCassandraNetworkAuthorizer.drop(RoleResource role) voidCIDRPermissionsManager.drop(RoleResource role) Drop CIDR permissions of a role, i.e, delete corresponding row from the tablevoidINetworkAuthorizer.drop(RoleResource role) Called when a role is deleted, so any corresponding network permissions data can also be cleaned upvoidAbstractCIDRAuthorizer.dropCidrPermissionsForRole(RoleResource role) voidICIDRAuthorizer.dropCidrPermissionsForRole(RoleResource role) Drop CIDR permissions of a rolevoidCassandraRoleManager.dropRole(AuthenticatedUser performer, RoleResource role) voidIRoleManager.dropRole(AuthenticatedUser performer, RoleResource role) Called during execution of DROP ROLE statement, as well we removing any main record of the role from the system this implies that we want to revoke this role from all other roles that it has been granted to.static RoleRoles.fromRoleResource(RoleResource resource, IRoleManager roleManager) Constructs a Role object from a RoleResource, using the methods of the supplied IRoleManager.CIDRPermissionsManager.getCidrPermissionsForRole(RoleResource role) Get CIDR permissions of a roleCassandraRoleManager.getCustomOptions(RoleResource role) IRoleManager.getCustomOptions(RoleResource role) Where an implementation supports OPTIONS in CREATE and ALTER operations this method should return theMap<String, String>representing the custom options associated with the role, as supplied to CREATE or ALTER.Roles.getOptions(RoleResource role) Returns the map of custom options for the named role.CassandraRoleManager.getRoleDetails(RoleResource grantee) IRoleManager.getRoleDetails(RoleResource grantee) Used to retrieve detailed role info on the full set of roles granted to a grantee.Roles.getRoleDetails(RoleResource primaryRole) Get detailed info on all the roles granted to the role identified by the supplied RoleResource.CassandraRoleManager.getRoles(RoleResource grantee, boolean includeInherited) IRoleManager.getRoles(RoleResource grantee, boolean includeInherited) Called during execution of a LIST ROLES query.static Set<RoleResource>Roles.getRoles(RoleResource primaryRole) Identify all roles granted to the supplied Role, including both directly granted and inherited roles.AllowAllAuthorizer.grant(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource to) CassandraAuthorizer.grant(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource grantee) IAuthorizer.grant(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource grantee) Grants a set of permissions on a resource to a role.voidCassandraRoleManager.grantRole(AuthenticatedUser performer, RoleResource role, RoleResource grantee) voidIRoleManager.grantRole(AuthenticatedUser performer, RoleResource role, RoleResource grantee) Called during execution of GRANT ROLE query.booleanAllowAllCIDRAuthorizer.hasAccessFromIp(RoleResource role, InetAddress ipAddress) booleanCassandraCIDRAuthorizer.hasAccessFromIp(RoleResource role, InetAddress ipAddress) booleanICIDRAuthorizer.hasAccessFromIp(RoleResource role, InetAddress ipAddress) Determines does the given role has access from CIDR groups associated with given IPstatic booleanRoles.hasSuperuserStatus(RoleResource role) Returns true if the supplied role or any other role granted to it (directly or indirectly) has superuser status.booleanCassandraRoleManager.isExistingRole(RoleResource role) booleanIRoleManager.isExistingRole(RoleResource role) Return true is a Role with the given name exists in the system.booleanCassandraRoleManager.isSuper(RoleResource role) booleanIRoleManager.isSuper(RoleResource role) Return true if there exists a Role with the given name that also has superuser status.AllowAllAuthorizer.list(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource of) CassandraAuthorizer.list(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource grantee) IAuthorizer.list(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource grantee) Returns a list of permissions on a resource granted to a role.AllowAllAuthorizer.revoke(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource from) CassandraAuthorizer.revoke(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource revokee) IAuthorizer.revoke(AuthenticatedUser performer, Set<Permission> permissions, IResource resource, RoleResource revokee) Revokes a set of permissions on a resource from a user.voidAllowAllAuthorizer.revokeAllFrom(RoleResource droppedRole) voidCassandraAuthorizer.revokeAllFrom(RoleResource revokee) voidIAuthorizer.revokeAllFrom(RoleResource revokee) Called before deleting a role with DROP ROLE statement (or the alias provided for compatibility, DROP USER) so that a new role with the same name wouldn't inherit permissions of the deleted one in the future.voidCassandraRoleManager.revokeRole(AuthenticatedUser performer, RoleResource role, RoleResource revokee) voidIRoleManager.revokeRole(AuthenticatedUser performer, RoleResource role, RoleResource revokee) Called during the execution of a REVOKE ROLE query.voidAbstractCIDRAuthorizer.setCidrGroupsForRole(RoleResource role, CIDRPermissions cidrPermissions) voidCIDRPermissionsManager.setCidrGroupsForRole(RoleResource role, CIDRPermissions cidrPermissions) Set CIDR permissions for a given rolevoidICIDRAuthorizer.setCidrGroupsForRole(RoleResource role, CIDRPermissions cidrPermissions) Set CIDR permissions for a given rolevoidAllowAllNetworkAuthorizer.setRoleDatacenters(RoleResource role, DCPermissions permissions) voidCassandraNetworkAuthorizer.setRoleDatacenters(RoleResource role, DCPermissions permissions) voidINetworkAuthorizer.setRoleDatacenters(RoleResource role, DCPermissions permissions) Constructor parameters in org.apache.cassandra.auth with type arguments of type RoleResourceModifierConstructorDescriptionCIDRPermissionsCache(Function<RoleResource, CIDRPermissions> loadFunction, Supplier<Map<RoleResource, CIDRPermissions>> bulkLoadFunction, BooleanSupplier cacheEnabledDelegate) CIDRPermissionsCache(Function<RoleResource, CIDRPermissions> loadFunction, Supplier<Map<RoleResource, CIDRPermissions>> bulkLoadFunction, BooleanSupplier cacheEnabledDelegate) -
Uses of RoleResource in org.apache.cassandra.auth.jmx
Fields in org.apache.cassandra.auth.jmx with type parameters of type RoleResourceModifier and TypeFieldDescriptionprotected Function<RoleResource,Set<PermissionDetails>> AuthorizationProxy.getPermissionsprotected Predicate<RoleResource>AuthorizationProxy.isSuperuser -
Uses of RoleResource in org.apache.cassandra.cql3.statements
Fields in org.apache.cassandra.cql3.statements declared as RoleResourceModifier and TypeFieldDescriptionprotected final RoleResourcePermissionsManagementStatement.granteeprotected final RoleResourceRoleManagementStatement.granteeprotected final RoleResourceRoleManagementStatement.roleMethods in org.apache.cassandra.cql3.statements with parameters of type RoleResourceModifier and TypeMethodDescriptionvoidAuthenticationStatement.checkPermission(ClientState state, Permission required, RoleResource resource) Method parameters in org.apache.cassandra.cql3.statements with type arguments of type RoleResourceModifier and TypeMethodDescriptionprotected ResultMessageListRolesStatement.formatResults(List<RoleResource> sortedRoles) protected ResultMessageListUsersStatement.formatResults(List<RoleResource> sortedRoles)