Class StaticActionAuthorizationService<U>

java.lang.Object
com.svenruppert.jsentinel.action.StaticActionAuthorizationService<U>
Type Parameters:
U - subject type
All Implemented Interfaces:
ActionAuthorizationService<U>

public final class StaticActionAuthorizationService<U> extends Object implements ActionAuthorizationService<U>
Default ActionAuthorizationService that checks an ActionPermission against the subject's permission set obtained via the configured AuthorizationService.

The action's name is matched case-sensitively against the value of each permission returned by AuthorizationService.permissionsFor(Object), so applications can keep a single string vocabulary across both APIs while opting into the typed action layer.

On requireAllowed denial, this implementation emits an ActionDenied audit event before throwing.