Chinmayi Prabhu Baramashetru1 , Paola Giannini2
, Silvia Lizeth Tapia Tarifa3
, and Olaf Owe4
The Art, Science, and Engineering of Programming, 2025, Vol. 10, Issue 2, Article 18
Submission date: 2025-02-02
Publication date: 2025-06-15
DOI: https://doi.org/10.22152/programming-journal.org/2025/10/18
Full text: t.b.a
Data protection laws such as GDPR aim to give users unprecedented control over their personal data. Compliance with these regulations requires systematically considering information flow and interactions among entities handling sensitive data. Privacy-by-design principles advocate embedding data protection into system architectures as a default. However, translating these abstract principles into concrete, explicit methods remains a significant challenge. This paper addresses this gap by proposing a language-based approach to privacy integration, combining static and runtime techniques. By employing type checking and type inference in an active object language, the framework enables the tracking of authorised data flows and the automatic generation of constraints checked at runtime based on user consent. This ensures that personal data is processed in compliance with GDPR constraints. The key contribution of this work is a type system that gather the compliance checks and the changes to users consent and integrates data privacy compliance verification into system execution. The paper demonstrates the feasibility of this approach through a soundness proof and several examples, illustrating how the proposed language addresses common GDPR requirements, such as user consent, purpose limitation, and data subject rights. This work advances the state of the art in privacy-aware system design by offering a systematic and automated method for integrating GDPR compliance into programming languages. This capability has implications for building trustworthy systems in domains such as healthcare or finance, where data privacy is crucial.
University of Oslo, Norway
https://orcid.org/0000-0001-5344-0032
Universita’ del Piemonte Orientale, Italy
https://orcid.org/0000-0003-2239-9529
University of Oslo, Norway
https://orcid.org/0000-0001-9948-2748
University of Oslo, Norway
https://orcid.org/0000-0003-0976-5678