Class RoleValidator

All Implemented Interfaces:

public final class RoleValidator extends Object implements AbacValidator<RoleValidator.RoleConfig>
Validator capable of validating role attributes of a subject. In default configuration, checks roles of current user's subject. This can be overridden to support user and service, or just a service either on global level (see RoleValidatorService.configKey() and configKey().

This validator supports both RolesAllowed and RoleValidator.Roles annotations.