IhawuResource

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class IhawuResource(val name: String)

Marks a response DTO that Ihawu evaluates at the serialization boundary, masking its fields according to the policy resolved for name.

Samples

@IhawuResource(name = "employee")
data class EmployeeProfile(
    val fullName: String,
    val idNumber: String,
    val salary: Double,
)

Properties

Link copied to clipboard

The resource key the PolicyResolver resolves field policies against.