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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -