Uses of Class
io.trino.spi.security.TrinoPrincipal
Packages that use TrinoPrincipal
-
Uses of TrinoPrincipal in io.trino.spi.connector
Methods in io.trino.spi.connector that return types with arguments of type TrinoPrincipalModifier and TypeMethodDescriptiondefault Optional<TrinoPrincipal> ConnectorMetadata.getSchemaOwner(ConnectorSession session, String schemaName) Get the schema properties for the specified schema.Methods in io.trino.spi.connector with parameters of type TrinoPrincipalModifier and TypeMethodDescriptiondefault voidConnectorAccessControl.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 voidConnectorAccessControl.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 voidConnectorAccessControl.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 voidConnectorAccessControl.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 voidConnectorAccessControl.checkCanRevokeSchemaPrivilege(ConnectorSecurityContext context, Privilege privilege, String schemaName, TrinoPrincipal revokee, boolean grantOption) default voidConnectorAccessControl.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.default voidConnectorAccessControl.checkCanSetSchemaAuthorization(ConnectorSecurityContext context, String schemaName, TrinoPrincipal principal) Check if identity is allowed to change the specified schema's user/role.default voidConnectorAccessControl.checkCanSetTableAuthorization(ConnectorSecurityContext context, SchemaTableName tableName, TrinoPrincipal principal) Check if identity is allowed to change the specified table's user/role.default voidConnectorAccessControl.checkCanSetViewAuthorization(ConnectorSecurityContext context, SchemaTableName viewName, TrinoPrincipal principal) Check if identity is allowed to change the specified view's user/role.default voidConnectorMetadata.createSchema(ConnectorSession session, String schemaName, Map<String, Object> properties, TrinoPrincipal owner) Creates a schema.default voidConnectorMetadata.denySchemaPrivileges(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified schemadefault voidConnectorMetadata.denyTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified tabledefault voidConnectorMetadata.grantSchemaPrivileges(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schemadefault voidConnectorMetadata.grantTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tableConnectorMetadata.listApplicableRoles(ConnectorSession session, TrinoPrincipal principal) List applicable roles, including the transitive grants, for the specified principalConnectorMetadata.listRoleGrants(ConnectorSession session, TrinoPrincipal principal) List role grants for a given principal, not recursively.default voidConnectorMetadata.revokeSchemaPrivileges(ConnectorSession session, String schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified userdefault voidConnectorMetadata.revokeTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified userdefault voidConnectorMetadata.setSchemaAuthorization(ConnectorSession session, String schemaName, TrinoPrincipal principal) Sets the user/role on the specified schema.default voidConnectorMetadata.setTableAuthorization(ConnectorSession session, SchemaTableName tableName, TrinoPrincipal principal) Sets the user/role on the specified table.default voidConnectorMetadata.setViewAuthorization(ConnectorSession session, SchemaTableName viewName, TrinoPrincipal principal) Sets the user/role on the specified view.Method parameters in io.trino.spi.connector with type arguments of type TrinoPrincipalModifier and TypeMethodDescriptiondefault voidConnectorAccessControl.checkCanCreateRole(ConnectorSecurityContext context, String role, Optional<TrinoPrincipal> grantor) default voidConnectorAccessControl.checkCanGrantRoles(ConnectorSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) default voidConnectorAccessControl.checkCanRevokeRoles(ConnectorSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) default voidConnectorMetadata.createRole(ConnectorSession session, String role, Optional<TrinoPrincipal> grantor) Creates the specified role.default voidConnectorMetadata.grantRoles(ConnectorSession connectorSession, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Grants the specified roles to the specified granteesdefault voidConnectorMetadata.revokeRoles(ConnectorSession connectorSession, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Revokes the specified roles from the specified grantees -
Uses of TrinoPrincipal in io.trino.spi.security
Methods in io.trino.spi.security that return TrinoPrincipalMethods in io.trino.spi.security that return types with arguments of type TrinoPrincipalMethods in io.trino.spi.security with parameters of type TrinoPrincipalModifier and TypeMethodDescriptiondefault voidSystemAccessControl.checkCanDenyEntityPrivilege(SystemSecurityContext context, EntityPrivilege privilege, EntityKindAndName entity, TrinoPrincipal grantee) Check if identity is allowed to deny the specified privilege to the grantee on the specified entity.default voidSystemAccessControl.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 voidSystemAccessControl.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 voidSystemAccessControl.checkCanGrantEntityPrivilege(SystemSecurityContext context, EntityPrivilege privilege, EntityKindAndName entity, TrinoPrincipal grantee, boolean grantOption) Check if identity is allowed to grant the specified privilege to the grantee on the specified entity.default voidSystemAccessControl.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 voidSystemAccessControl.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 voidSystemAccessControl.checkCanRevokeEntityPrivilege(SystemSecurityContext context, EntityPrivilege privilege, EntityKindAndName entity, TrinoPrincipal revokee, boolean grantOption) Check if identity is allowed to revoke the specified privilege on the specified entity from the revokee.default voidSystemAccessControl.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 voidSystemAccessControl.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.default voidSystemAccessControl.checkCanSetSchemaAuthorization(SystemSecurityContext context, CatalogSchemaName schema, TrinoPrincipal principal) Check if identity is allowed to change the specified schema's user/role.default voidSystemAccessControl.checkCanSetTableAuthorization(SystemSecurityContext context, CatalogSchemaTableName table, TrinoPrincipal principal) Check if identity is allowed to change the specified table's user/role.default voidSystemAccessControl.checkCanSetViewAuthorization(SystemSecurityContext context, CatalogSchemaTableName view, TrinoPrincipal principal) Check if identity is allowed to change the specified view's user/role.static voidAccessDeniedException.denySetSchemaAuthorization(String schemaName, TrinoPrincipal principal) static voidAccessDeniedException.denySetSchemaAuthorization(String schemaName, TrinoPrincipal principal, String extraInfo) static voidAccessDeniedException.denySetTableAuthorization(String tableName, TrinoPrincipal principal) static voidAccessDeniedException.denySetTableAuthorization(String tableName, TrinoPrincipal principal, String extraInfo) static voidAccessDeniedException.denySetViewAuthorization(String viewName, TrinoPrincipal principal) static voidAccessDeniedException.denySetViewAuthorization(String viewName, TrinoPrincipal principal, String extraInfo) Method parameters in io.trino.spi.security with type arguments of type TrinoPrincipalModifier and TypeMethodDescriptiondefault voidSystemAccessControl.checkCanCreateRole(SystemSecurityContext context, String role, Optional<TrinoPrincipal> grantor) Check if identity is allowed to create the specified role.default voidSystemAccessControl.checkCanGrantRoles(SystemSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Check if identity is allowed to grant the specified roles to the specified principals.default voidSystemAccessControl.checkCanRevokeRoles(SystemSecurityContext context, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Check if identity is allowed to revoke the specified roles from the specified principals.Constructors in io.trino.spi.security with parameters of type TrinoPrincipalModifierConstructorDescriptionGrantInfo(PrivilegeInfo privilegeInfo, TrinoPrincipal grantee, SchemaTableName schemaTableName, Optional<TrinoPrincipal> grantor, Optional<Boolean> withHierarchy) RoleGrant(TrinoPrincipal grantee, String roleName, boolean grantable) Constructor parameters in io.trino.spi.security with type arguments of type TrinoPrincipalModifierConstructorDescriptionGrantInfo(PrivilegeInfo privilegeInfo, TrinoPrincipal grantee, SchemaTableName schemaTableName, Optional<TrinoPrincipal> grantor, Optional<Boolean> withHierarchy)