Uses of Class
io.trino.spi.security.SystemSecurityContext
Packages that use SystemSecurityContext
-
Uses of SystemSecurityContext in io.trino.spi.security
Methods in io.trino.spi.security with parameters of type SystemSecurityContextModifier and TypeMethodDescriptiondefault voidSystemAccessControl.checkCanAccessCatalog(SystemSecurityContext context, String catalogName) Check if identity is allowed to access the specified catalogdefault voidSystemAccessControl.checkCanAddColumn(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to add columns to the specified table in a catalog.default voidSystemAccessControl.checkCanAlterColumn(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to alter columns for the specified table in a catalog.default voidSystemAccessControl.checkCanCreateCatalog(SystemSecurityContext context, String catalog) Check if identity is allowed to create the specified catalog.default voidSystemAccessControl.checkCanCreateMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView, Map<String, Object> properties) Check if identity is allowed to create the specified materialized view in a catalog.default voidSystemAccessControl.checkCanCreateRole(SystemSecurityContext context, String role, Optional<TrinoPrincipal> grantor) Check if identity is allowed to create the specified role.default voidSystemAccessControl.checkCanCreateSchema(SystemSecurityContext context, CatalogSchemaName schema, Map<String, Object> properties) Check if identity is allowed to create the specified schema with properties in a catalog.default voidSystemAccessControl.checkCanCreateTable(SystemSecurityContext context, CatalogSchemaTableName table, Map<String, Object> properties) Check if identity is allowed to create the specified table with properties in a catalog.default voidSystemAccessControl.checkCanCreateView(SystemSecurityContext context, CatalogSchemaTableName view) Check if identity is allowed to create the specified view in a catalog.default voidSystemAccessControl.checkCanCreateViewWithSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns) Check if identity is allowed to create a view that selects from the specified columns in a relation.default voidSystemAccessControl.checkCanDeleteFromTable(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to delete from the specified table in a catalog.default voidSystemAccessControl.checkCanDenySchemaPrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal grantee) Check if identity is allowed to deny the specified privilege to the grantee on the specified schema.default voidSystemAccessControl.checkCanDenyTablePrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal grantee) Check if identity is allowed to deny the specified privilege to the grantee on the specified table.default voidSystemAccessControl.checkCanDropCatalog(SystemSecurityContext context, String catalog) Check if identity is allowed to drop the specified catalog.default voidSystemAccessControl.checkCanDropColumn(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to drop columns from the specified table in a catalog.default voidSystemAccessControl.checkCanDropMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView) Check if identity is allowed to drop the specified materialized view in a catalog.default voidSystemAccessControl.checkCanDropRole(SystemSecurityContext context, String role) Check if identity is allowed to drop the specified role.default voidSystemAccessControl.checkCanDropSchema(SystemSecurityContext context, CatalogSchemaName schema) Check if identity is allowed to drop the specified schema in a catalog.default voidSystemAccessControl.checkCanDropTable(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to drop the specified table in a catalog.default voidSystemAccessControl.checkCanDropView(SystemSecurityContext context, CatalogSchemaTableName view) Check if identity is allowed to drop the specified view in a catalog.default voidSystemAccessControl.checkCanExecuteFunction(SystemSecurityContext systemSecurityContext, FunctionKind functionKind, CatalogSchemaRoutineName functionName) Check if identity is allowed to execute the specified functiondefault voidSystemAccessControl.checkCanExecuteFunction(SystemSecurityContext systemSecurityContext, String functionName) Check if identity is allowed to execute the specified functiondefault voidSystemAccessControl.checkCanExecuteProcedure(SystemSecurityContext systemSecurityContext, CatalogSchemaRoutineName procedure) Check if identity is allowed to execute the specified proceduredefault voidSystemAccessControl.checkCanExecuteQuery(SystemSecurityContext context) Checks if identity can execute a query.default voidSystemAccessControl.checkCanExecuteTableProcedure(SystemSecurityContext systemSecurityContext, CatalogSchemaTableName table, String procedure) Check if identity is allowed to execute the specified table procedure on specified tabledefault voidSystemAccessControl.checkCanGrantExecuteFunctionPrivilege(SystemSecurityContext context, FunctionKind functionKind, CatalogSchemaRoutineName functionName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant an access to the function execution to grantee.default voidSystemAccessControl.checkCanGrantExecuteFunctionPrivilege(SystemSecurityContext context, String functionName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant an access to the function execution to grantee.default voidSystemAccessControl.checkCanGrantRoles(SystemSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Check if identity is allowed to grant the specified roles to the specified principals.default voidSystemAccessControl.checkCanGrantSchemaPrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant the specified privilege to the grantee on the specified schema.default voidSystemAccessControl.checkCanGrantTablePrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant the specified privilege to the grantee on the specified table.default voidSystemAccessControl.checkCanImpersonateUser(SystemSecurityContext context, String userName) Check if the identity is allowed impersonate the specified user.default voidSystemAccessControl.checkCanInsertIntoTable(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to insert into the specified table in a catalog.default voidSystemAccessControl.checkCanKillQueryOwnedBy(SystemSecurityContext context, Identity queryOwner) Checks if identity can kill a query owned by the specified user.default voidSystemAccessControl.checkCanKillQueryOwnedBy(SystemSecurityContext context, String queryOwner) Deprecated.default voidSystemAccessControl.checkCanReadSystemInformation(SystemSecurityContext context) Check if identity is allowed to read system information such as statistics, service registry, thread stacks, etc.default voidSystemAccessControl.checkCanRefreshMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView) Check if identity is allowed to refresh the specified materialized view in a catalog.default voidSystemAccessControl.checkCanRenameColumn(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to rename a column in the specified table in a catalog.default voidSystemAccessControl.checkCanRenameMaterializedView(SystemSecurityContext context, CatalogSchemaTableName view, CatalogSchemaTableName newView) Check if identity is allowed to rename the specified materialized view in a catalog.default voidSystemAccessControl.checkCanRenameSchema(SystemSecurityContext context, CatalogSchemaName schema, String newSchemaName) Check if identity is allowed to rename the specified schema in a catalog.default voidSystemAccessControl.checkCanRenameTable(SystemSecurityContext context, CatalogSchemaTableName table, CatalogSchemaTableName newTable) Check if identity is allowed to rename the specified table in a catalog.default voidSystemAccessControl.checkCanRenameView(SystemSecurityContext context, CatalogSchemaTableName view, CatalogSchemaTableName newView) Check if identity is allowed to rename the specified view in a catalog.default voidSystemAccessControl.checkCanRevokeRoles(SystemSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Check if identity is allowed to revoke the specified roles from the specified principals.default voidSystemAccessControl.checkCanRevokeSchemaPrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified schema from the revokee.default voidSystemAccessControl.checkCanRevokeTablePrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified table from the revokee.default voidSystemAccessControl.checkCanSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns) Check if identity is allowed to select from the specified columns in a relation.default voidSystemAccessControl.checkCanSetCatalogSessionProperty(SystemSecurityContext context, String catalogName, String propertyName) Check if identity is allowed to set the specified property in a catalog.default voidSystemAccessControl.checkCanSetColumnComment(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to set comment to column in the specified table in a catalog.default voidSystemAccessControl.checkCanSetMaterializedViewProperties(SystemSecurityContext context, CatalogSchemaTableName materializedView, Map<String, Optional<Object>> properties) Check if identity is allowed to set the properties of the specified materialized view in a catalog.default voidSystemAccessControl.checkCanSetSchemaAuthorization(SystemSecurityContext context, CatalogSchemaName schema, TrinoPrincipal principal) Check if identity is allowed to change the specified schema's user/role.default voidSystemAccessControl.checkCanSetSystemSessionProperty(SystemSecurityContext context, String propertyName) Check if identity is allowed to set the specified system property.default voidSystemAccessControl.checkCanSetTableAuthorization(SystemSecurityContext context, CatalogSchemaTableName table, TrinoPrincipal principal) Check if identity is allowed to change the specified table's user/role.default voidSystemAccessControl.checkCanSetTableComment(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to comment the specified table in a catalog.default voidSystemAccessControl.checkCanSetTableProperties(SystemSecurityContext context, CatalogSchemaTableName table, Map<String, Optional<Object>> properties) Check if identity is allowed to alter properties to the specified table in a catalog.default voidSystemAccessControl.checkCanSetViewAuthorization(SystemSecurityContext context, CatalogSchemaTableName view, TrinoPrincipal principal) Check if identity is allowed to change the specified view's user/role.default voidSystemAccessControl.checkCanSetViewComment(SystemSecurityContext context, CatalogSchemaTableName view) Check if identity is allowed to comment the specified view in a catalog.default voidSystemAccessControl.checkCanShowColumns(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to show columns of tables by executing SHOW COLUMNS, DESCRIBE etc.default voidSystemAccessControl.checkCanShowCreateSchema(SystemSecurityContext context, CatalogSchemaName schemaName) Check if identity is allowed to execute SHOW CREATE SCHEMA.default voidSystemAccessControl.checkCanShowCreateTable(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to execute SHOW CREATE TABLE, SHOW CREATE VIEW or SHOW CREATE MATERIALIZED VIEWdefault voidSystemAccessControl.checkCanShowCurrentRoles(SystemSecurityContext context) Check if identity is allowed to show current roles.default voidSystemAccessControl.checkCanShowRoleAuthorizationDescriptors(SystemSecurityContext context) Check if identity is allowed to show role authorization descriptors (i.e.default voidSystemAccessControl.checkCanShowRoleGrants(SystemSecurityContext context) Check if identity is allowed to show its own role grants.default voidSystemAccessControl.checkCanShowRoles(SystemSecurityContext context) Check if identity is allowed to show roles.default voidSystemAccessControl.checkCanShowSchemas(SystemSecurityContext context, String catalogName) Check if identity is allowed to execute SHOW SCHEMAS in a catalog.default voidSystemAccessControl.checkCanShowTables(SystemSecurityContext context, CatalogSchemaName schema) Check if identity is allowed to show metadata of tables by executing SHOW TABLES, SHOW GRANTS etc.default voidSystemAccessControl.checkCanTruncateTable(SystemSecurityContext context, CatalogSchemaTableName table) Check if identity is allowed to truncate the specified table in a catalog.default voidSystemAccessControl.checkCanUpdateTableColumns(SystemSecurityContext securityContext, CatalogSchemaTableName table, Set<String> updatedColumnNames) Check if identity is allowed to update the supplied columns in the specified table in a catalog.default voidSystemAccessControl.checkCanViewQueryOwnedBy(SystemSecurityContext context, Identity queryOwner) Checks if identity can view a query owned by the specified user.default voidSystemAccessControl.checkCanViewQueryOwnedBy(SystemSecurityContext context, String queryOwner) Deprecated.default voidSystemAccessControl.checkCanWriteSystemInformation(SystemSecurityContext context) Check if identity is allowed to write system information such as marking nodes offline, or changing runtime flags.SystemAccessControl.filterCatalogs(SystemSecurityContext context, Set<String> catalogs) Filter the list of catalogs to those visible to the identity.SystemAccessControl.filterColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns) Filter the list of columns to those visible to the identity.SystemAccessControl.filterSchemas(SystemSecurityContext context, String catalogName, Set<String> schemaNames) Filter the list of schemas in a catalog to those visible to the identity.default Set<SchemaTableName>SystemAccessControl.filterTables(SystemSecurityContext context, String catalogName, Set<SchemaTableName> tableNames) Filter the list of tables and views to those visible to the identity.default Collection<Identity>SystemAccessControl.filterViewQueryOwnedBy(SystemSecurityContext context, Collection<Identity> queryOwners) Filter the list of users to those the identity view query owned by the user.SystemAccessControl.filterViewQueryOwnedBy(SystemSecurityContext context, Set<String> queryOwners) Deprecated.default Optional<ViewExpression>SystemAccessControl.getColumnMask(SystemSecurityContext context, CatalogSchemaTableName tableName, String columnName, Type type) Get column masks associated with the given table, column and identity.default List<ViewExpression>SystemAccessControl.getColumnMasks(SystemSecurityContext context, CatalogSchemaTableName tableName, String columnName, Type type) Deprecated.default List<ViewExpression>SystemAccessControl.getRowFilters(SystemSecurityContext context, CatalogSchemaTableName tableName) Get row filters associated with the given table and identity.
SystemAccessControl.checkCanKillQueryOwnedBy(SystemSecurityContext, Identity)instead.