Hi,
i think I have found what i need and maybe its helpful for you as well. You will found the restxq api and the implementations of all restxq annotations under the following repository:
https://github.com/exquery/exquery. In my opinion it is possible to use this source code to read in functionality of restxq annotations. So it should be possible to implement a restxq annotation framework for security aspects. It should also be possible to implement SSL connection with restxq annotations (or does it actually work in another way?).
So if anyone starts to develope a restxq annotation framework for security aspects, i am really interessting to join the team (especially for Marcel).
Regards,
Florian