Table of Contents

Class DataSubjectIdAttribute

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Marks the property whose value is the raw data-subject identifier for a record, so that PersonalDataAttribute-annotated fields on the same record are encrypted under that subject's key (crypto-shredding by subject).

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class DataSubjectIdAttribute : Attribute
Inheritance
DataSubjectIdAttribute
Inherited Members

Examples

public class CustomerRecord
{
[DataSubjectId]
public string CustomerId { get; set; }

[PersonalData(Category = PersonalDataCategory.ContactInfo)]
public string Email { get; set; }
}

Remarks

Per-subject crypto-shredding needs to know which data subject a record belongs to before it can select the subject's key. This marker names the identifying property; the value is hashed (pseudonymized) to a stable key handle, and each PersonalDataAttribute field is then encrypted under that per-subject key. Destroying the subject's key renders only that subject's PII unrecoverable, leaving every other subject's data intact.

A record with no DataSubjectIdAttribute falls back to the configured purpose/registry key — per-subject shredding is opt-in per record, additive over existing at-rest encryption.

At most one property per record may carry this marker. A record referencing multiple data subjects is not covered by this v1 contract.