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
public class AccessDeniedException extends TrinoException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(String message)
AccessDeniedException(String message, AccessDeniedException e)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
denyAddColumn(String tableName)
static void
denyAddColumn(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
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
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
denyDropColumn(String tableName)
static void
denyDropColumn(String tableName, 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
denyExecuteProcedure(String procedureName)
static void
denyExecuteQuery()
static void
denyExecuteQuery(String extraInfo)
static void
denyExecuteTableProcedure(String tableName, String procedureName)
static void
denyGrantExecuteFunctionPrivilege(String functionName, Identity identity, Identity grantee)
static void
denyGrantExecuteFunctionPrivilege(String functionName, Identity identity, String grantee)
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
denyKillQuery()
static void
denyKillQuery(String extraInfo)
static void
denyReadSystemInformationAccess()
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
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
denySelectView(String viewName)
static void
denySelectView(String viewName, 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
denySetSystemSessionProperty(String propertyName)
static void
denySetSystemSessionProperty(String propertyName, String extraInfo)
static void
denySetTableAuthorization(String tableName, TrinoPrincipal principal)
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
denyShowColumns(String tableName)
static void
denyShowCreateSchema(String schemaName)
static void
denyShowCreateTable(String tableName)
static void
denyShowCreateTable(String tableName, String extraInfo)
static void
denyShowCurrentRoles()
static void
denyShowRoleAuthorizationDescriptors()
static void
denyShowRoleGrants()
static void
denyShowRoles()
static void
denyShowSchemas()
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
denyViewQuery()
static void
denyViewQuery(String extraInfo)
static void
denyWriteSystemInformationAccess()
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 Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(String message)
-
AccessDeniedException
public AccessDeniedException(String message, AccessDeniedException e)
-
-
Method Detail
-
denyImpersonateUser
public static void denyImpersonateUser(String originalUser, String newUser, String extraInfo)
-
denySetUser
public static void denySetUser(Optional<Principal> principal, String userName, String extraInfo)
-
denyReadSystemInformationAccess
public static void denyReadSystemInformationAccess()
-
denyReadSystemInformationAccess
public static void denyReadSystemInformationAccess(String extraInfo)
-
denyWriteSystemInformationAccess
public static void denyWriteSystemInformationAccess()
-
denyWriteSystemInformationAccess
public static void denyWriteSystemInformationAccess(String extraInfo)
-
denyExecuteQuery
public static void denyExecuteQuery()
-
denyExecuteQuery
public static void denyExecuteQuery(String extraInfo)
-
denyViewQuery
public static void denyViewQuery()
-
denyViewQuery
public static void denyViewQuery(String extraInfo)
-
denyKillQuery
public static void denyKillQuery()
-
denyKillQuery
public static void denyKillQuery(String extraInfo)
-
denyCatalogAccess
public static void denyCatalogAccess(String catalogName)
-
denyCreateSchema
public static void denyCreateSchema(String schemaName)
-
denyDropSchema
public static void denyDropSchema(String schemaName)
-
denyRenameSchema
public static void denyRenameSchema(String schemaName, String newSchemaName, String extraInfo)
-
denySetSchemaAuthorization
public static void denySetSchemaAuthorization(String schemaName, TrinoPrincipal principal)
-
denyShowSchemas
public static void denyShowSchemas()
-
denyShowSchemas
public static void denyShowSchemas(String extraInfo)
-
denyShowCreateSchema
public static void denyShowCreateSchema(String schemaName)
-
denyShowCreateTable
public static void denyShowCreateTable(String tableName)
-
denyCreateTable
public static void denyCreateTable(String tableName)
-
denyDropTable
public static void denyDropTable(String tableName)
-
denyRenameTable
public static void denyRenameTable(String tableName, String newTableName, String extraInfo)
-
denySetTableProperties
public static void denySetTableProperties(String tableName)
-
denySetTableProperties
public static void denySetTableProperties(String tableName, String extraInfo)
-
denyCommentTable
public static void denyCommentTable(String tableName)
-
denyCommentColumn
public static void denyCommentColumn(String tableName)
-
denyShowTables
public static void denyShowTables(String schemaName)
-
denyShowColumns
public static void denyShowColumns(String tableName)
-
denyAddColumn
public static void denyAddColumn(String tableName)
-
denyDropColumn
public static void denyDropColumn(String tableName)
-
denySetTableAuthorization
public static void denySetTableAuthorization(String tableName, TrinoPrincipal principal)
-
denyRenameColumn
public static void denyRenameColumn(String tableName)
-
denySelectTable
public static void denySelectTable(String tableName)
-
denyInsertTable
public static void denyInsertTable(String tableName)
-
denyDeleteTable
public static void denyDeleteTable(String tableName)
-
denyTruncateTable
public static void denyTruncateTable(String tableName)
-
denyUpdateTableColumns
public static void denyUpdateTableColumns(String tableName, Set<String> updatedColumnNames)
-
denyUpdateTableColumns
public static void denyUpdateTableColumns(String tableName, Set<String> updatedColumnNames, String extraInfo)
-
denyCreateView
public static void denyCreateView(String viewName)
-
denyCreateViewWithSelect
public static void denyCreateViewWithSelect(String sourceName, Identity identity)
-
denyCreateViewWithSelect
public static void denyCreateViewWithSelect(String sourceName, ConnectorIdentity identity)
-
denyCreateViewWithSelect
public static void denyCreateViewWithSelect(String sourceName, ConnectorIdentity identity, String extraInfo)
-
denyGrantExecuteFunctionPrivilege
public static void denyGrantExecuteFunctionPrivilege(String functionName, Identity identity, Identity grantee)
-
denyGrantExecuteFunctionPrivilege
public static void denyGrantExecuteFunctionPrivilege(String functionName, Identity identity, String grantee)
-
denyRenameView
public static void denyRenameView(String viewName, String newViewName, String extraInfo)
-
denySetViewAuthorization
public static void denySetViewAuthorization(String viewName, TrinoPrincipal principal)
-
denyDropView
public static void denyDropView(String viewName)
-
denySelectView
public static void denySelectView(String viewName)
-
denyCreateMaterializedView
public static void denyCreateMaterializedView(String materializedViewName)
-
denyCreateMaterializedView
public static void denyCreateMaterializedView(String materializedViewName, String extraInfo)
-
denyRefreshMaterializedView
public static void denyRefreshMaterializedView(String materializedViewName)
-
denyRefreshMaterializedView
public static void denyRefreshMaterializedView(String materializedViewName, String extraInfo)
-
denySetMaterializedViewProperties
public static void denySetMaterializedViewProperties(String materializedViewName)
-
denySetMaterializedViewProperties
public static void denySetMaterializedViewProperties(String materializedViewName, String extraInfo)
-
denyDropMaterializedView
public static void denyDropMaterializedView(String materializedViewName)
-
denyDropMaterializedView
public static void denyDropMaterializedView(String materializedViewName, String extraInfo)
-
denyRenameMaterializedView
public static void denyRenameMaterializedView(String materializedViewName, String newMaterializedViewName)
-
denyRenameMaterializedView
public static void denyRenameMaterializedView(String materializedViewName, String newMaterializedViewName, String extraInfo)
-
denyGrantSchemaPrivilege
public static void denyGrantSchemaPrivilege(String privilege, String schemaName)
-
denyGrantSchemaPrivilege
public static void denyGrantSchemaPrivilege(String privilege, String schemaName, String extraInfo)
-
denyDenySchemaPrivilege
public static void denyDenySchemaPrivilege(String privilege, String schemaName)
-
denyDenySchemaPrivilege
public static void denyDenySchemaPrivilege(String privilege, String schemaName, String extraInfo)
-
denyRevokeSchemaPrivilege
public static void denyRevokeSchemaPrivilege(String privilege, String schemaName)
-
denyRevokeSchemaPrivilege
public static void denyRevokeSchemaPrivilege(String privilege, String schemaName, String extraInfo)
-
denyGrantTablePrivilege
public static void denyGrantTablePrivilege(String privilege, String tableName)
-
denyGrantTablePrivilege
public static void denyGrantTablePrivilege(String privilege, String tableName, String extraInfo)
-
denyDenyTablePrivilege
public static void denyDenyTablePrivilege(String privilege, String tableName)
-
denyDenyTablePrivilege
public static void denyDenyTablePrivilege(String privilege, String tableName, String extraInfo)
-
denyRevokeTablePrivilege
public static void denyRevokeTablePrivilege(String privilege, String tableName)
-
denyRevokeTablePrivilege
public static void denyRevokeTablePrivilege(String privilege, String tableName, String extraInfo)
-
denyShowRoles
public static void denyShowRoles()
-
denyShowRoleAuthorizationDescriptors
public static void denyShowRoleAuthorizationDescriptors()
-
denyShowCurrentRoles
public static void denyShowCurrentRoles()
-
denyShowRoleGrants
public static void denyShowRoleGrants()
-
denySetSystemSessionProperty
public static void denySetSystemSessionProperty(String propertyName)
-
denySetSystemSessionProperty
public static void denySetSystemSessionProperty(String propertyName, String extraInfo)
-
denySetCatalogSessionProperty
public static void denySetCatalogSessionProperty(String catalogName, String propertyName)
-
denySetCatalogSessionProperty
public static void denySetCatalogSessionProperty(String catalogName, String propertyName, String extraInfo)
-
denySetCatalogSessionProperty
public static void denySetCatalogSessionProperty(String propertyName)
-
denySelectColumns
public static void denySelectColumns(String tableName, Collection<String> columnNames)
-
denySelectColumns
public static void denySelectColumns(String tableName, Collection<String> columnNames, String extraInfo)
-
denyCreateRole
public static void denyCreateRole(String roleName)
-
denyDropRole
public static void denyDropRole(String roleName)
-
denyGrantRoles
public static void denyGrantRoles(Set<String> roles, Set<TrinoPrincipal> grantees)
-
denyRevokeRoles
public static void denyRevokeRoles(Set<String> roles, Set<TrinoPrincipal> grantees)
-
denySetRole
public static void denySetRole(String role)
-
denyExecuteProcedure
public static void denyExecuteProcedure(String procedureName)
-
denyExecuteFunction
public static void denyExecuteFunction(String functionName)
-
-