java - How to create security anotation like spring security -


i wonder how create security annotation spring security (@preauthorized or @secured) check session decide how application threat authority log on user.

is resource can read or recommendation?

best regards

ps: reason, cannot use spring security

the technique behind these annotations called aspect oriented programming (aop).

spring security relies on spring aop, allows intercept particular method calls on spring-managed object, can apply security checks them.

see aspect oriented programming spring. alternatively, if want without spring, see standalone aop implementations such aspectj.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -