AccessPolicySpec
The aggregate an access policy is checked on, and the callers it is checked for (accessPolicySpec).
Functions
Link copied to clipboard
Link copied to clipboard
Checks what caller may do with the aggregate.
fun whenCaller(subject: String? = null, claims: Map<String, List<String>> = emptyMap(), roles: List<String> = emptyList(), block: AccessExpectations.() -> Unit)
Checks what a caller subject may do, holding claims, with roles (Caller.roles).