Uses of Enum Class
io.trino.spi.security.Privilege
Packages that use Privilege
-
Uses of Privilege in io.trino.spi.connector
Methods in io.trino.spi.connector with parameters of type PrivilegeModifier and TypeMethodDescriptiondefault void
ConnectorAccessControl.checkCanDenySchemaPrivilege
(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal grantee) Check if identity is allowed to deny to any other user the specified privilege on the specified schema.default void
ConnectorAccessControl.checkCanDenyTablePrivilege
(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal grantee) Check if identity is allowed to deny to any other user the specified privilege on the specified table.default void
ConnectorAccessControl.checkCanGrantSchemaPrivilege
(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant to any other user the specified privilege on the specified schema.default void
ConnectorAccessControl.checkCanGrantTablePrivilege
(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant to any other user the specified privilege on the specified table.default void
ConnectorAccessControl.checkCanRevokeSchemaPrivilege
(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal revokee, boolean grantOption) default void
ConnectorAccessControl.checkCanRevokeTablePrivilege
(ConnectorSecurityContext context, Privilege privilege, SchemaTableName tableName, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified table from any user.Method parameters in io.trino.spi.connector with type arguments of type PrivilegeModifier and TypeMethodDescriptiondefault void
ConnectorMetadata.denySchemaPrivileges
(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified schemadefault void
ConnectorMetadata.denyTablePrivileges
(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified tabledefault void
ConnectorMetadata.grantSchemaPrivileges
(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schemadefault void
ConnectorMetadata.grantTablePrivileges
(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tabledefault void
ConnectorMetadata.revokeSchemaPrivileges
(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified userdefault void
ConnectorMetadata.revokeTablePrivileges
(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified user -
Uses of Privilege in io.trino.spi.security
Methods in io.trino.spi.security that return PrivilegeModifier and TypeMethodDescriptionPrivilegeInfo.getPrivilege()
static Privilege
Returns the enum constant of this class with the specified name.static Privilege[]
Privilege.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.trino.spi.security with parameters of type PrivilegeModifier and TypeMethodDescriptiondefault void
SystemAccessControl.checkCanDenySchemaPrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal grantee) Check if identity is allowed to deny the specified privilege to the grantee on the specified schema.default void
SystemAccessControl.checkCanDenyTablePrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal grantee) Check if identity is allowed to deny the specified privilege to the grantee on the specified table.default void
SystemAccessControl.checkCanGrantSchemaPrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant the specified privilege to the grantee on the specified schema.default void
SystemAccessControl.checkCanGrantTablePrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant the specified privilege to the grantee on the specified table.default void
SystemAccessControl.checkCanRevokeSchemaPrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaName schema, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified schema from the revokee.default void
SystemAccessControl.checkCanRevokeTablePrivilege
(SystemSecurityContext context, Privilege privilege, CatalogSchemaTableName table, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified table from the revokee.Constructors in io.trino.spi.security with parameters of type Privilege