Context conditions can be used to further specify the policy on an element in Valtimo. When a condition is used in the policy it will match the conditions against the element it is trying to access. Context conditions are restrictions on top of those, to define policies that only work within the context of another resource.
The context option can be used to specify permissions for cases where certain context is provided. But sometimes you want to specify permissions for cases where no context is provided. This can't be accomplished by leaving out the contextResourceType, because it will then match any context.
In order to configure permissions for cases where no context is provided, the NoContext option can be used. This can be done by setting the contextResourceType to com.ritense.authorization.NoContext. This is a stand in for any permission check that does not explicitly provide context.