Package io.trino.spi.security
Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.trino.spi.TrinoException
io.trino.spi.security.AccessDeniedException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedException(String message) AccessDeniedException(String message, AccessDeniedException e) -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddenyAddColumn(String tableName) static voiddenyAddColumn(String tableName, String extraInfo) static voiddenyAlterColumn(String tableName) static voiddenyAlterColumn(String tableName, String extraInfo) static voiddenyCatalogAccess(String catalogName) static voiddenyCatalogAccess(String catalogName, String extraInfo) static voiddenyCommentColumn(String tableName) static voiddenyCommentColumn(String tableName, String extraInfo) static voiddenyCommentTable(String tableName) static voiddenyCommentTable(String tableName, String extraInfo) static voiddenyCommentView(String viewName) static voiddenyCommentView(String viewName, String extraInfo) static voiddenyCreateCatalog(String catalogName) static voiddenyCreateCatalog(String catalogName, String extraInfo) static voiddenyCreateFunction(String functionName) static voiddenyCreateFunction(String functionName, String extraInfo) static voiddenyCreateMaterializedView(String materializedViewName) static voiddenyCreateMaterializedView(String materializedViewName, String extraInfo) static voiddenyCreateRole(String roleName) static voiddenyCreateSchema(String schemaName) static voiddenyCreateSchema(String schemaName, String extraInfo) static voiddenyCreateTable(String tableName) static voiddenyCreateTable(String tableName, String extraInfo) static voiddenyCreateView(String viewName) static voiddenyCreateView(String viewName, String extraInfo) static voiddenyCreateViewWithSelect(String sourceName, ConnectorIdentity identity) static voiddenyCreateViewWithSelect(String sourceName, ConnectorIdentity identity, String extraInfo) static voiddenyCreateViewWithSelect(String sourceName, Identity identity) static voiddenyDeleteTable(String tableName) static voiddenyDeleteTable(String tableName, String extraInfo) static voiddenyDenySchemaPrivilege(String privilege, String schemaName) static voiddenyDenySchemaPrivilege(String privilege, String schemaName, String extraInfo) static voiddenyDenyTablePrivilege(String privilege, String tableName) static voiddenyDenyTablePrivilege(String privilege, String tableName, String extraInfo) static voiddenyDropCatalog(String catalogName) static voiddenyDropCatalog(String catalogName, String extraInfo) static voiddenyDropColumn(String tableName) static voiddenyDropColumn(String tableName, String extraInfo) static voiddenyDropFunction(String functionName) static voiddenyDropFunction(String functionName, String extraInfo) static voiddenyDropMaterializedView(String materializedViewName) static voiddenyDropMaterializedView(String materializedViewName, String extraInfo) static voiddenyDropRole(String roleName) static voiddenyDropSchema(String schemaName) static voiddenyDropSchema(String schemaName, String extraInfo) static voiddenyDropTable(String tableName) static voiddenyDropTable(String tableName, String extraInfo) static voiddenyDropView(String viewName) static voiddenyDropView(String viewName, String extraInfo) static voiddenyExecuteFunction(String functionName) static voiddenyExecuteFunction(String functionName, FunctionKind functionKind, String extraInfo) static voiddenyExecuteProcedure(String procedureName) static voiddenyExecuteProcedure(String procedureName, String extraInfo) static voidstatic voiddenyExecuteQuery(String extraInfo) static voiddenyExecuteTableProcedure(String tableName, String procedureName) static voiddenyGrantExecuteFunctionPrivilege(String functionName, Identity identity, TrinoPrincipal grantee) static voiddenyGrantRoles(Set<String> roles, Set<TrinoPrincipal> grantees) static voiddenyGrantSchemaPrivilege(String privilege, String schemaName) static voiddenyGrantSchemaPrivilege(String privilege, String schemaName, String extraInfo) static voiddenyGrantTablePrivilege(String privilege, String tableName) static voiddenyGrantTablePrivilege(String privilege, String tableName, String extraInfo) static voiddenyImpersonateUser(String originalUser, String newUser) static voiddenyImpersonateUser(String originalUser, String newUser, String extraInfo) static voiddenyInsertTable(String tableName) static voiddenyInsertTable(String tableName, String extraInfo) static voidstatic voiddenyKillQuery(String extraInfo) static voidstatic voiddenyReadSystemInformationAccess(String extraInfo) static voiddenyRefreshMaterializedView(String materializedViewName) static voiddenyRefreshMaterializedView(String materializedViewName, String extraInfo) static voiddenyRenameColumn(String tableName) static voiddenyRenameColumn(String tableName, String extraInfo) static voiddenyRenameMaterializedView(String materializedViewName, String newMaterializedViewName) static voiddenyRenameMaterializedView(String materializedViewName, String newMaterializedViewName, String extraInfo) static voiddenyRenameSchema(String schemaName, String newSchemaName) static voiddenyRenameSchema(String schemaName, String newSchemaName, String extraInfo) static voiddenyRenameTable(String tableName, String newTableName) static voiddenyRenameTable(String tableName, String newTableName, String extraInfo) static voiddenyRenameView(String viewName, String newViewName) static voiddenyRenameView(String viewName, String newViewName, String extraInfo) static voiddenyRevokeRoles(Set<String> roles, Set<TrinoPrincipal> grantees) static voiddenyRevokeSchemaPrivilege(String privilege, String schemaName) static voiddenyRevokeSchemaPrivilege(String privilege, String schemaName, String extraInfo) static voiddenyRevokeTablePrivilege(String privilege, String tableName) static voiddenyRevokeTablePrivilege(String privilege, String tableName, String extraInfo) static voiddenySelectColumns(String tableName, Collection<String> columnNames) static voiddenySelectColumns(String tableName, Collection<String> columnNames, String extraInfo) static voiddenySelectTable(String tableName) static voiddenySelectTable(String tableName, String extraInfo) static voiddenySelectView(String viewName) static voiddenySelectView(String viewName, String extraInfo) static voiddenySetCatalogSessionProperty(String propertyName) static voiddenySetCatalogSessionProperty(String catalogName, String propertyName) static voiddenySetCatalogSessionProperty(String catalogName, String propertyName, String extraInfo) static voiddenySetMaterializedViewProperties(String materializedViewName) static voiddenySetMaterializedViewProperties(String materializedViewName, String extraInfo) static voiddenySetRole(String role) static voiddenySetSchemaAuthorization(String schemaName, TrinoPrincipal principal) static voiddenySetSchemaAuthorization(String schemaName, TrinoPrincipal principal, String extraInfo) static voiddenySetSystemSessionProperty(String propertyName) static voiddenySetSystemSessionProperty(String propertyName, String extraInfo) static voiddenySetTableAuthorization(String tableName, TrinoPrincipal principal) static voiddenySetTableAuthorization(String tableName, TrinoPrincipal principal, String extraInfo) static voiddenySetTableProperties(String tableName) static voiddenySetTableProperties(String tableName, String extraInfo) static voiddenySetUser(Optional<Principal> principal, String userName) static voiddenySetUser(Optional<Principal> principal, String userName, String extraInfo) static voiddenySetViewAuthorization(String viewName, TrinoPrincipal principal) static voiddenySetViewAuthorization(String viewName, TrinoPrincipal principal, String extraInfo) static voiddenySetViewComment(String viewName) static voiddenySetViewComment(String viewName, String extraInfo) static voiddenyShowColumns(String tableName) static voiddenyShowColumns(String tableName, String extraInfo) static voiddenyShowCreateSchema(String schemaName) static voiddenyShowCreateSchema(String schemaName, String extraInfo) static voiddenyShowCreateTable(String tableName) static voiddenyShowCreateTable(String tableName, String extraInfo) static voidstatic voiddenyShowFunctions(String schemaName) static voiddenyShowFunctions(String schemaName, String extraInfo) static voidstatic voidstatic voidstatic voidstatic voiddenyShowSchemas(String extraInfo) static voiddenyShowTables(String schemaName) static voiddenyShowTables(String schemaName, String extraInfo) static voiddenyTruncateTable(String tableName) static voiddenyTruncateTable(String tableName, String extraInfo) static voiddenyUpdateTableColumns(String tableName, Set<String> updatedColumnNames) static voiddenyUpdateTableColumns(String tableName, Set<String> updatedColumnNames, String extraInfo) static voidstatic voiddenyViewQuery(String extraInfo) static voidstatic voiddenyWriteSystemInformationAccess(String extraInfo) Methods inherited from class io.trino.spi.TrinoException
getErrorCode, getLocation, getMessage, getRawMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
AccessDeniedException
-
AccessDeniedException
-
-
Method Details
-
denyImpersonateUser
-
denyImpersonateUser
-
denySetUser
-
denySetUser
-
denyReadSystemInformationAccess
public static void denyReadSystemInformationAccess() -
denyReadSystemInformationAccess
-
denyWriteSystemInformationAccess
public static void denyWriteSystemInformationAccess() -
denyWriteSystemInformationAccess
-
denyExecuteQuery
public static void denyExecuteQuery() -
denyExecuteQuery
-
denyViewQuery
public static void denyViewQuery() -
denyViewQuery
-
denyKillQuery
public static void denyKillQuery() -
denyKillQuery
-
denyCatalogAccess
-
denyCatalogAccess
-
denyCreateCatalog
-
denyCreateCatalog
-
denyDropCatalog
-
denyDropCatalog
-
denyCreateSchema
-
denyCreateSchema
-
denyDropSchema
-
denyDropSchema
-
denyRenameSchema
-
denyRenameSchema
-
denySetSchemaAuthorization
-
denySetSchemaAuthorization
public static void denySetSchemaAuthorization(String schemaName, TrinoPrincipal principal, String extraInfo) -
denyShowSchemas
public static void denyShowSchemas() -
denyShowSchemas
-
denyShowCreateSchema
-
denyShowCreateSchema
-
denyShowCreateTable
-
denyShowCreateTable
-
denyCreateTable
-
denyCreateTable
-
denyDropTable
-
denyDropTable
-
denyRenameTable
-
denyRenameTable
-
denySetTableProperties
-
denySetTableProperties
-
denyCommentTable
-
denyCommentTable
-
denyCommentView
-
denyCommentView
-
denyCommentColumn
-
denyCommentColumn
-
denyShowTables
-
denyShowTables
-
denyShowColumns
-
denyShowColumns
-
denyAddColumn
-
denyAddColumn
-
denyDropColumn
-
denyDropColumn
-
denyAlterColumn
-
denyAlterColumn
-
denySetTableAuthorization
-
denySetTableAuthorization
public static void denySetTableAuthorization(String tableName, TrinoPrincipal principal, String extraInfo) -
denyRenameColumn
-
denyRenameColumn
-
denySelectTable
-
denySelectTable
-
denyInsertTable
-
denyInsertTable
-
denyDeleteTable
-
denyDeleteTable
-
denyTruncateTable
-
denyTruncateTable
-
denyUpdateTableColumns
-
denyUpdateTableColumns
-
denyCreateView
-
denyCreateView
-
denyCreateViewWithSelect
-
denyCreateViewWithSelect
-
denyCreateViewWithSelect
public static void denyCreateViewWithSelect(String sourceName, ConnectorIdentity identity, String extraInfo) -
denyGrantExecuteFunctionPrivilege
public static void denyGrantExecuteFunctionPrivilege(String functionName, Identity identity, TrinoPrincipal grantee) -
denyRenameView
-
denyRenameView
-
denySetViewAuthorization
-
denySetViewAuthorization
public static void denySetViewAuthorization(String viewName, TrinoPrincipal principal, String extraInfo) -
denySetViewComment
-
denySetViewComment
-
denyDropView
-
denyDropView
-
denySelectView
-
denySelectView
-
denyCreateMaterializedView
-
denyCreateMaterializedView
-
denyRefreshMaterializedView
-
denyRefreshMaterializedView
-
denySetMaterializedViewProperties
-
denySetMaterializedViewProperties
-
denyDropMaterializedView
-
denyDropMaterializedView
-
denyRenameMaterializedView
-
denyRenameMaterializedView
-
denyGrantSchemaPrivilege
-
denyGrantSchemaPrivilege
-
denyDenySchemaPrivilege
-
denyDenySchemaPrivilege
-
denyRevokeSchemaPrivilege
-
denyRevokeSchemaPrivilege
-
denyGrantTablePrivilege
-
denyGrantTablePrivilege
-
denyDenyTablePrivilege
-
denyDenyTablePrivilege
-
denyRevokeTablePrivilege
-
denyRevokeTablePrivilege
-
denyShowRoles
public static void denyShowRoles() -
denyShowRoleAuthorizationDescriptors
public static void denyShowRoleAuthorizationDescriptors() -
denyShowCurrentRoles
public static void denyShowCurrentRoles() -
denyShowRoleGrants
public static void denyShowRoleGrants() -
denySetSystemSessionProperty
-
denySetSystemSessionProperty
-
denySetCatalogSessionProperty
-
denySetCatalogSessionProperty
-
denySetCatalogSessionProperty
-
denySelectColumns
-
denySelectColumns
public static void denySelectColumns(String tableName, Collection<String> columnNames, String extraInfo) -
denyCreateRole
-
denyDropRole
-
denyGrantRoles
-
denyRevokeRoles
-
denySetRole
-
denyExecuteProcedure
-
denyExecuteProcedure
-
denyExecuteFunction
-
denyExecuteFunction
public static void denyExecuteFunction(String functionName, FunctionKind functionKind, String extraInfo) -
denyExecuteTableProcedure
-
denyShowFunctions
-
denyShowFunctions
-
denyCreateFunction
-
denyCreateFunction
-
denyDropFunction
-
denyDropFunction
-