Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When should security annotation 'denyAll' be used?

In what situations is annotation javax.annotation.security.DenyAll useful?

like image 655
Balconsky Avatar asked Oct 09 '22 05:10

Balconsky


1 Answers

Its can be used for a method which must be public for some reason (perhaps it implements an interface) but should never be called directly. It can be called from other methods in the same entity.

http://openejb.apache.org/security-annotations.html

like image 164
Peter Lawrey Avatar answered Oct 13 '22 10:10

Peter Lawrey