Package io.trino.plugin.base.security
Class AllowAllSystemAccessControl
- java.lang.Object
-
- io.trino.plugin.base.security.AllowAllSystemAccessControl
-
- All Implemented Interfaces:
SystemAccessControl
- Direct Known Subclasses:
DefaultSystemAccessControl
public class AllowAllSystemAccessControl extends Object implements SystemAccessControl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllowAllSystemAccessControl.Factory
-
Field Summary
Fields Modifier and Type Field Description static AllowAllSystemAccessControlINSTANCEstatic StringNAME
-
Constructor Summary
Constructors Constructor Description AllowAllSystemAccessControl()
-
Method Summary
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
INSTANCE
public static final AllowAllSystemAccessControl INSTANCE
-
-
Method Detail
-
checkCanImpersonateUser
public void checkCanImpersonateUser(SystemSecurityContext context, String userName)
- Specified by:
checkCanImpersonateUserin interfaceSystemAccessControl
-
checkCanSetUser
public void checkCanSetUser(Optional<Principal> principal, String userName)
- Specified by:
checkCanSetUserin interfaceSystemAccessControl
-
checkCanReadSystemInformation
public void checkCanReadSystemInformation(SystemSecurityContext context)
- Specified by:
checkCanReadSystemInformationin interfaceSystemAccessControl
-
checkCanWriteSystemInformation
public void checkCanWriteSystemInformation(SystemSecurityContext context)
- Specified by:
checkCanWriteSystemInformationin interfaceSystemAccessControl
-
checkCanExecuteQuery
public void checkCanExecuteQuery(SystemSecurityContext context)
- Specified by:
checkCanExecuteQueryin interfaceSystemAccessControl
-
checkCanViewQueryOwnedBy
public void checkCanViewQueryOwnedBy(SystemSecurityContext context, String queryOwner)
- Specified by:
checkCanViewQueryOwnedByin interfaceSystemAccessControl
-
checkCanKillQueryOwnedBy
public void checkCanKillQueryOwnedBy(SystemSecurityContext context, String queryOwner)
- Specified by:
checkCanKillQueryOwnedByin interfaceSystemAccessControl
-
filterViewQueryOwnedBy
public Set<String> filterViewQueryOwnedBy(SystemSecurityContext context, Set<String> queryOwners)
- Specified by:
filterViewQueryOwnedByin interfaceSystemAccessControl
-
checkCanSetSystemSessionProperty
public void checkCanSetSystemSessionProperty(SystemSecurityContext context, String propertyName)
- Specified by:
checkCanSetSystemSessionPropertyin interfaceSystemAccessControl
-
checkCanAccessCatalog
public void checkCanAccessCatalog(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanAccessCatalogin interfaceSystemAccessControl
-
filterCatalogs
public Set<String> filterCatalogs(SystemSecurityContext context, Set<String> catalogs)
- Specified by:
filterCatalogsin interfaceSystemAccessControl
-
checkCanCreateSchema
public void checkCanCreateSchema(SystemSecurityContext context, CatalogSchemaName schema)
- Specified by:
checkCanCreateSchemain interfaceSystemAccessControl
-
checkCanDropSchema
public void checkCanDropSchema(SystemSecurityContext context, CatalogSchemaName schema)
- Specified by:
checkCanDropSchemain interfaceSystemAccessControl
-
checkCanRenameSchema
public void checkCanRenameSchema(SystemSecurityContext context, CatalogSchemaName schema, String newSchemaName)
- Specified by:
checkCanRenameSchemain interfaceSystemAccessControl
-
checkCanSetSchemaAuthorization
public void checkCanSetSchemaAuthorization(SystemSecurityContext context, CatalogSchemaName schema, TrinoPrincipal principal)
- Specified by:
checkCanSetSchemaAuthorizationin interfaceSystemAccessControl
-
checkCanShowSchemas
public void checkCanShowSchemas(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanShowSchemasin interfaceSystemAccessControl
-
filterSchemas
public Set<String> filterSchemas(SystemSecurityContext context, String catalogName, Set<String> schemaNames)
- Specified by:
filterSchemasin interfaceSystemAccessControl
-
checkCanShowCreateSchema
public void checkCanShowCreateSchema(SystemSecurityContext context, CatalogSchemaName schemaName)
- Specified by:
checkCanShowCreateSchemain interfaceSystemAccessControl
-
checkCanShowCreateTable
public void checkCanShowCreateTable(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanShowCreateTablein interfaceSystemAccessControl
-
checkCanCreateTable
public void checkCanCreateTable(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanCreateTablein interfaceSystemAccessControl
-
checkCanDropTable
public void checkCanDropTable(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanDropTablein interfaceSystemAccessControl
-
checkCanRenameTable
public void checkCanRenameTable(SystemSecurityContext context, CatalogSchemaTableName table, CatalogSchemaTableName newTable)
- Specified by:
checkCanRenameTablein interfaceSystemAccessControl
-
checkCanSetTableComment
public void checkCanSetTableComment(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanSetTableCommentin interfaceSystemAccessControl
-
checkCanSetColumnComment
public void checkCanSetColumnComment(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanSetColumnCommentin interfaceSystemAccessControl
-
checkCanShowTables
public void checkCanShowTables(SystemSecurityContext context, CatalogSchemaName schema)
- Specified by:
checkCanShowTablesin interfaceSystemAccessControl
-
filterTables
public Set<SchemaTableName> filterTables(SystemSecurityContext context, String catalogName, Set<SchemaTableName> tableNames)
- Specified by:
filterTablesin interfaceSystemAccessControl
-
checkCanShowColumns
public void checkCanShowColumns(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanShowColumnsin interfaceSystemAccessControl
-
filterColumns
public Set<String> filterColumns(SystemSecurityContext context, CatalogSchemaTableName tableName, Set<String> columns)
- Specified by:
filterColumnsin interfaceSystemAccessControl
-
checkCanAddColumn
public void checkCanAddColumn(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanAddColumnin interfaceSystemAccessControl
-
checkCanDropColumn
public void checkCanDropColumn(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanDropColumnin interfaceSystemAccessControl
-
checkCanRenameColumn
public void checkCanRenameColumn(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanRenameColumnin interfaceSystemAccessControl
-
checkCanSetTableAuthorization
public void checkCanSetTableAuthorization(SystemSecurityContext context, CatalogSchemaTableName table, TrinoPrincipal principal)
- Specified by:
checkCanSetTableAuthorizationin interfaceSystemAccessControl
-
checkCanSelectFromColumns
public void checkCanSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns)
- Specified by:
checkCanSelectFromColumnsin interfaceSystemAccessControl
-
checkCanInsertIntoTable
public void checkCanInsertIntoTable(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanInsertIntoTablein interfaceSystemAccessControl
-
checkCanDeleteFromTable
public void checkCanDeleteFromTable(SystemSecurityContext context, CatalogSchemaTableName table)
- Specified by:
checkCanDeleteFromTablein interfaceSystemAccessControl
-
checkCanUpdateTableColumns
public void checkCanUpdateTableColumns(SystemSecurityContext securityContext, CatalogSchemaTableName table, Set<String> updatedColumnNames)
- Specified by:
checkCanUpdateTableColumnsin interfaceSystemAccessControl
-
checkCanCreateView
public void checkCanCreateView(SystemSecurityContext context, CatalogSchemaTableName view)
- Specified by:
checkCanCreateViewin interfaceSystemAccessControl
-
checkCanRenameView
public void checkCanRenameView(SystemSecurityContext context, CatalogSchemaTableName view, CatalogSchemaTableName newView)
- Specified by:
checkCanRenameViewin interfaceSystemAccessControl
-
checkCanSetViewAuthorization
public void checkCanSetViewAuthorization(SystemSecurityContext context, CatalogSchemaTableName view, TrinoPrincipal principal)
- Specified by:
checkCanSetViewAuthorizationin interfaceSystemAccessControl
-
checkCanDropView
public void checkCanDropView(SystemSecurityContext context, CatalogSchemaTableName view)
- Specified by:
checkCanDropViewin interfaceSystemAccessControl
-
checkCanCreateViewWithSelectFromColumns
public void checkCanCreateViewWithSelectFromColumns(SystemSecurityContext context, CatalogSchemaTableName table, Set<String> columns)
- Specified by:
checkCanCreateViewWithSelectFromColumnsin interfaceSystemAccessControl
-
checkCanCreateMaterializedView
public void checkCanCreateMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView)
- Specified by:
checkCanCreateMaterializedViewin interfaceSystemAccessControl
-
checkCanRefreshMaterializedView
public void checkCanRefreshMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView)
- Specified by:
checkCanRefreshMaterializedViewin interfaceSystemAccessControl
-
checkCanDropMaterializedView
public void checkCanDropMaterializedView(SystemSecurityContext context, CatalogSchemaTableName materializedView)
- Specified by:
checkCanDropMaterializedViewin interfaceSystemAccessControl
-
checkCanGrantExecuteFunctionPrivilege
public void checkCanGrantExecuteFunctionPrivilege(SystemSecurityContext context, String functionName, TrinoPrincipal grantee, boolean grantOption)
- Specified by:
checkCanGrantExecuteFunctionPrivilegein interfaceSystemAccessControl
-
checkCanSetCatalogSessionProperty
public void checkCanSetCatalogSessionProperty(SystemSecurityContext context, String catalogName, String propertyName)
- Specified by:
checkCanSetCatalogSessionPropertyin interfaceSystemAccessControl
-
checkCanGrantSchemaPrivilege
public void checkCanGrantSchemaPrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal grantee, boolean grantOption)
- Specified by:
checkCanGrantSchemaPrivilegein interfaceSystemAccessControl
-
checkCanRevokeSchemaPrivilege
public void checkCanRevokeSchemaPrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal revokee, boolean grantOption)
- Specified by:
checkCanRevokeSchemaPrivilegein interfaceSystemAccessControl
-
checkCanGrantTablePrivilege
public void checkCanGrantTablePrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal grantee, boolean grantOption)
- Specified by:
checkCanGrantTablePrivilegein interfaceSystemAccessControl
-
checkCanRevokeTablePrivilege
public void checkCanRevokeTablePrivilege(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal revokee, boolean grantOption)
- Specified by:
checkCanRevokeTablePrivilegein interfaceSystemAccessControl
-
checkCanShowRoles
public void checkCanShowRoles(SystemSecurityContext context, String catalogName)
- Specified by:
checkCanShowRolesin interfaceSystemAccessControl
-
checkCanExecuteProcedure
public void checkCanExecuteProcedure(SystemSecurityContext systemSecurityContext, CatalogSchemaRoutineName procedure)
- Specified by:
checkCanExecuteProcedurein interfaceSystemAccessControl
-
checkCanExecuteFunction
public void checkCanExecuteFunction(SystemSecurityContext systemSecurityContext, String functionName)
- Specified by:
checkCanExecuteFunctionin interfaceSystemAccessControl
-
getEventListeners
public Iterable<EventListener> getEventListeners()
- Specified by:
getEventListenersin interfaceSystemAccessControl
-
getRowFilter
public Optional<ViewExpression> getRowFilter(SystemSecurityContext context, CatalogSchemaTableName tableName)
- Specified by:
getRowFilterin interfaceSystemAccessControl
-
getColumnMask
public Optional<ViewExpression> getColumnMask(SystemSecurityContext context, CatalogSchemaTableName tableName, String columnName, Type type)
- Specified by:
getColumnMaskin interfaceSystemAccessControl
-
-