Class SystemTableAwareAccessControl
java.lang.Object
io.trino.plugin.base.security.ForwardingConnectorAccessControl
io.trino.plugin.hive.security.SystemTableAwareAccessControl
- All Implemented Interfaces:
ConnectorAccessControl
-
Constructor Summary
ConstructorsConstructorDescriptionSystemTableAwareAccessControl(ConnectorAccessControl delegate, Set<SystemTableProvider> systemTableProviders) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCanSelectFromColumns(ConnectorSecurityContext context, SchemaTableName tableName, Set<String> columnNames) voidcheckCanShowColumns(ConnectorSecurityContext context, SchemaTableName tableName) protected ConnectorAccessControldelegate()filterColumns(ConnectorSecurityContext context, Map<SchemaTableName, Set<String>> tableColumns) Methods inherited from class io.trino.plugin.base.security.ForwardingConnectorAccessControl
canCreateViewWithExecuteFunction, canExecuteFunction, checkCanAddColumn, checkCanAlterColumn, checkCanCreateFunction, checkCanCreateMaterializedView, checkCanCreateRole, checkCanCreateSchema, checkCanCreateTable, checkCanCreateView, checkCanCreateViewWithSelectFromColumns, checkCanDeleteFromTable, checkCanDenySchemaPrivilege, checkCanDenyTablePrivilege, checkCanDropColumn, checkCanDropFunction, checkCanDropMaterializedView, checkCanDropRole, checkCanDropSchema, checkCanDropTable, checkCanDropView, checkCanExecuteProcedure, checkCanExecuteTableProcedure, checkCanGrantRoles, checkCanGrantSchemaPrivilege, checkCanGrantTablePrivilege, checkCanInsertIntoTable, checkCanRefreshMaterializedView, checkCanRenameColumn, checkCanRenameMaterializedView, checkCanRenameSchema, checkCanRenameTable, checkCanRenameView, checkCanRevokeRoles, checkCanRevokeSchemaPrivilege, checkCanRevokeTablePrivilege, checkCanSetCatalogSessionProperty, checkCanSetColumnComment, checkCanSetMaterializedViewProperties, checkCanSetRole, checkCanSetSchemaAuthorization, checkCanSetTableAuthorization, checkCanSetTableComment, checkCanSetTableProperties, checkCanSetViewAuthorization, checkCanSetViewComment, checkCanShowCreateFunction, checkCanShowCreateSchema, checkCanShowCreateTable, checkCanShowCurrentRoles, checkCanShowFunctions, checkCanShowRoleGrants, checkCanShowRoles, checkCanShowSchemas, checkCanShowTables, checkCanTruncateTable, checkCanUpdateTableColumns, filterFunctions, filterSchemas, filterTables, getColumnMask, getColumnMasks, getRowFilters, of
-
Constructor Details
-
SystemTableAwareAccessControl
@Inject public SystemTableAwareAccessControl(ConnectorAccessControl delegate, Set<SystemTableProvider> systemTableProviders)
-
-
Method Details
-
delegate
- Specified by:
delegatein classForwardingConnectorAccessControl
-
checkCanShowColumns
- Specified by:
checkCanShowColumnsin interfaceConnectorAccessControl- Overrides:
checkCanShowColumnsin classForwardingConnectorAccessControl
-
filterColumns
public Map<SchemaTableName,Set<String>> filterColumns(ConnectorSecurityContext context, Map<SchemaTableName, Set<String>> tableColumns) - Specified by:
filterColumnsin interfaceConnectorAccessControl- Overrides:
filterColumnsin classForwardingConnectorAccessControl
-
checkCanSelectFromColumns
public void checkCanSelectFromColumns(ConnectorSecurityContext context, SchemaTableName tableName, Set<String> columnNames) - Specified by:
checkCanSelectFromColumnsin interfaceConnectorAccessControl- Overrides:
checkCanSelectFromColumnsin classForwardingConnectorAccessControl
-