Class CommandSecurityChecker

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct

    @Service
    @Singleton
    public class CommandSecurityChecker
    extends Object
    implements org.glassfish.hk2.api.PostConstruct
    Utility class which checks if the Subject is allowed to execute the specified command.

    The processing includes AccessRequired} annotations, CRUD commands, RestEndpoint annotations, and if the command class implements AdminCommandSecurity.AccessCheckProvider it also invokes the corresponding getAccessChecks method. To succeed the overall authorization all access checks - whether inferred from annotations or returned from getAccessChecks - for which isFailureFatal is true must pass.

    Author:
    tjquinn