Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.trino.spi.TrinoException
io.trino.spi.security.AccessDeniedException
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessDeniedException
(String message) AccessDeniedException
(String message, AccessDeniedException e) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
denyAddColumn
(String tableName) static void
denyAddColumn
(String tableName, String extraInfo) static void
denyAlterColumn
(String tableName) static void
denyAlterColumn
(String tableName, String extraInfo) static void
denyCatalogAccess
(String catalogName) static void
denyCatalogAccess
(String catalogName, String extraInfo) static void
denyCommentColumn
(String tableName) static void
denyCommentColumn
(String tableName, String extraInfo) static void
denyCommentTable
(String tableName) static void
denyCommentTable
(String tableName, String extraInfo) static void
denyCommentView
(String viewName) static void
denyCommentView
(String viewName, String extraInfo) static void
denyCreateCatalog
(String catalogName) static void
denyCreateCatalog
(String catalogName, String extraInfo) static void
denyCreateFunction
(String functionName) static void
denyCreateFunction
(String functionName, String extraInfo) static void
denyCreateMaterializedView
(String materializedViewName) static void
denyCreateMaterializedView
(String materializedViewName, String extraInfo) static void
denyCreateRole
(String roleName) static void
denyCreateSchema
(String schemaName) static void
denyCreateSchema
(String schemaName, String extraInfo) static void
denyCreateTable
(String tableName) static void
denyCreateTable
(String tableName, String extraInfo) static void
denyCreateView
(String viewName) static void
denyCreateView
(String viewName, String extraInfo) static void
denyCreateViewWithSelect
(String sourceName, ConnectorIdentity identity) static void
denyCreateViewWithSelect
(String sourceName, ConnectorIdentity identity, String extraInfo) static void
denyCreateViewWithSelect
(String sourceName, Identity identity) static void
denyDeleteTable
(String tableName) static void
denyDeleteTable
(String tableName, String extraInfo) static void
denyDenyEntityPrivilege
(String privilege, EntityKindAndName entity) static void
denyDenyEntityPrivilege
(String privilege, EntityKindAndName entity, String extraInfo) static void
denyDenySchemaPrivilege
(String privilege, String schemaName) static void
denyDenySchemaPrivilege
(String privilege, String schemaName, String extraInfo) static void
denyDenyTablePrivilege
(String privilege, String tableName) static void
denyDenyTablePrivilege
(String privilege, String tableName, String extraInfo) static void
denyDropCatalog
(String catalogName) static void
denyDropCatalog
(String catalogName, String extraInfo) static void
denyDropColumn
(String tableName) static void
denyDropColumn
(String tableName, String extraInfo) static void
denyDropFunction
(String functionName) static void
denyDropFunction
(String functionName, String extraInfo) static void
denyDropMaterializedView
(String materializedViewName) static void
denyDropMaterializedView
(String materializedViewName, String extraInfo) static void
denyDropRole
(String roleName) static void
denyDropSchema
(String schemaName) static void
denyDropSchema
(String schemaName, String extraInfo) static void
denyDropTable
(String tableName) static void
denyDropTable
(String tableName, String extraInfo) static void
denyDropView
(String viewName) static void
denyDropView
(String viewName, String extraInfo) static void
denyExecuteFunction
(String functionName) static void
denyExecuteFunction
(String functionName, FunctionKind functionKind, String extraInfo) static void
denyExecuteProcedure
(String procedureName) static void
denyExecuteProcedure
(String procedureName, String extraInfo) static void
static void
denyExecuteQuery
(String extraInfo) static void
denyExecuteTableProcedure
(String tableName, String procedureName) static void
denyGrantEntityPrivilege
(String privilege, EntityKindAndName entity) static void
denyGrantEntityPrivilege
(String privilege, EntityKindAndName entity, String extraInfo) static void
denyGrantRoles
(Set<String> roles, Set<TrinoPrincipal> grantees) static void
denyGrantSchemaPrivilege
(String privilege, String schemaName) static void
denyGrantSchemaPrivilege
(String privilege, String schemaName, String extraInfo) static void
denyGrantTablePrivilege
(String privilege, String tableName) static void
denyGrantTablePrivilege
(String privilege, String tableName, String extraInfo) static void
denyImpersonateUser
(String originalUser, String newUser) static void
denyImpersonateUser
(String originalUser, String newUser, String extraInfo) static void
denyInsertTable
(String tableName) static void
denyInsertTable
(String tableName, String extraInfo) static void
static void
denyKillQuery
(String extraInfo) static void
static void
denyReadSystemInformationAccess
(String extraInfo) static void
denyRefreshMaterializedView
(String materializedViewName) static void
denyRefreshMaterializedView
(String materializedViewName, String extraInfo) static void
denyRenameColumn
(String tableName) static void
denyRenameColumn
(String tableName, String extraInfo) static void
denyRenameMaterializedView
(String materializedViewName, String newMaterializedViewName) static void
denyRenameMaterializedView
(String materializedViewName, String newMaterializedViewName, String extraInfo) static void
denyRenameSchema
(String schemaName, String newSchemaName) static void
denyRenameSchema
(String schemaName, String newSchemaName, String extraInfo) static void
denyRenameTable
(String tableName, String newTableName) static void
denyRenameTable
(String tableName, String newTableName, String extraInfo) static void
denyRenameView
(String viewName, String newViewName) static void
denyRenameView
(String viewName, String newViewName, String extraInfo) static void
denyRevokeEntityPrivilege
(String privilege, EntityKindAndName entity) static void
denyRevokeEntityPrivilege
(String privilege, EntityKindAndName entity, String extraInfo) static void
denyRevokeRoles
(Set<String> roles, Set<TrinoPrincipal> grantees) static void
denyRevokeSchemaPrivilege
(String privilege, String schemaName) static void
denyRevokeSchemaPrivilege
(String privilege, String schemaName, String extraInfo) static void
denyRevokeTablePrivilege
(String privilege, String tableName) static void
denyRevokeTablePrivilege
(String privilege, String tableName, String extraInfo) static void
denySelectColumns
(String tableName, Collection<String> columnNames) static void
denySelectColumns
(String tableName, Collection<String> columnNames, String extraInfo) static void
denySelectTable
(String tableName) static void
denySelectTable
(String tableName, String extraInfo) static void
denySetCatalogSessionProperty
(String propertyName) static void
denySetCatalogSessionProperty
(String catalogName, String propertyName) static void
denySetCatalogSessionProperty
(String catalogName, String propertyName, String extraInfo) static void
denySetMaterializedViewProperties
(String materializedViewName) static void
denySetMaterializedViewProperties
(String materializedViewName, String extraInfo) static void
denySetRole
(String role) static void
denySetSchemaAuthorization
(String schemaName, TrinoPrincipal principal) static void
denySetSchemaAuthorization
(String schemaName, TrinoPrincipal principal, String extraInfo) static void
denySetSystemSessionProperty
(String propertyName) static void
denySetSystemSessionProperty
(String propertyName, String extraInfo) static void
denySetTableAuthorization
(String tableName, TrinoPrincipal principal) static void
denySetTableAuthorization
(String tableName, TrinoPrincipal principal, String extraInfo) static void
denySetTableProperties
(String tableName) static void
denySetTableProperties
(String tableName, String extraInfo) static void
denySetUser
(Optional<Principal> principal, String userName) static void
denySetUser
(Optional<Principal> principal, String userName, String extraInfo) static void
denySetViewAuthorization
(String viewName, TrinoPrincipal principal) static void
denySetViewAuthorization
(String viewName, TrinoPrincipal principal, String extraInfo) static void
denyShowColumns
(String tableName) static void
denyShowColumns
(String tableName, String extraInfo) static void
denyShowCreateFunction
(String functionName) static void
denyShowCreateFunction
(String functionName, String extraInfo) static void
denyShowCreateSchema
(String schemaName) static void
denyShowCreateSchema
(String schemaName, String extraInfo) static void
denyShowCreateTable
(String tableName) static void
denyShowCreateTable
(String tableName, String extraInfo) static void
static void
denyShowFunctions
(String schemaName) static void
denyShowFunctions
(String schemaName, String extraInfo) static void
static void
static void
static void
denyShowSchemas
(String extraInfo) static void
denyShowTables
(String schemaName) static void
denyShowTables
(String schemaName, String extraInfo) static void
denyTruncateTable
(String tableName) static void
denyTruncateTable
(String tableName, String extraInfo) static void
denyUpdateTableColumns
(String tableName, Set<String> updatedColumnNames) static void
denyUpdateTableColumns
(String tableName, Set<String> updatedColumnNames, String extraInfo) static void
static void
denyViewQuery
(String extraInfo) static void
static void
denyWriteSystemInformationAccess
(String extraInfo) Methods inherited from class io.trino.spi.TrinoException
getErrorCode, getLocation, getMessage, getRawMessage
Methods 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) -
denyRenameView
-
denyRenameView
-
denySetViewAuthorization
-
denySetViewAuthorization
public static void denySetViewAuthorization(String viewName, TrinoPrincipal principal, String extraInfo) -
denyDropView
-
denyDropView
-
denyCreateMaterializedView
-
denyCreateMaterializedView
-
denyRefreshMaterializedView
-
denyRefreshMaterializedView
-
denySetMaterializedViewProperties
-
denySetMaterializedViewProperties
-
denyDropMaterializedView
-
denyDropMaterializedView
-
denyRenameMaterializedView
-
denyRenameMaterializedView
-
denyGrantSchemaPrivilege
-
denyGrantSchemaPrivilege
-
denyDenySchemaPrivilege
-
denyDenySchemaPrivilege
-
denyRevokeSchemaPrivilege
-
denyRevokeSchemaPrivilege
-
denyGrantTablePrivilege
-
denyGrantTablePrivilege
-
denyDenyTablePrivilege
-
denyDenyTablePrivilege
-
denyRevokeTablePrivilege
-
denyRevokeTablePrivilege
-
denyGrantEntityPrivilege
-
denyGrantEntityPrivilege
public static void denyGrantEntityPrivilege(String privilege, EntityKindAndName entity, String extraInfo) -
denyDenyEntityPrivilege
-
denyDenyEntityPrivilege
public static void denyDenyEntityPrivilege(String privilege, EntityKindAndName entity, String extraInfo) -
denyRevokeEntityPrivilege
-
denyRevokeEntityPrivilege
public static void denyRevokeEntityPrivilege(String privilege, EntityKindAndName entity, String extraInfo) -
denyShowRoles
public static void denyShowRoles() -
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
-
denyShowCreateFunction
-
denyShowCreateFunction
-