Interface AdminCommandSecurity.AccessCheckProvider

  • Enclosing interface:
    AdminCommandSecurity

    public static interface AdminCommandSecurity.AccessCheckProvider
    Behavior required of all command classes which provide any of their own custom authorization enforcement. The system will invoke the class's getAccessChecks method after it has injected @Inject and @Param fields and after it has invoked any @PostConstruct methods. The getAccessChecks method returns one or more AccessRequired.AccessCheck objects, indicating additional authorization checking that secure admin should perform beyond what is triggered by the annotations.
    • Method Detail

      • getAccessChecks

        Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
        Returns the AccessChecks the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics or AccessRequired annotations.
        Returns:
        the AccessChecks