J2EE™ Security for Servlets, EJBs and Web Services: Applying Theory and Standards to Practice
by Pankaj Kumar
Performance Issues
Enforcing access control rules requires runtime checks. So it is natural to ask: What are the performance implications? Will these runtime checks degrade the runtime performance of my application significantly? What factors impact this degradation? What can I do to better understand and manage it?
To answer these questions, let us do a simple experiment and collect some performance data. We write a program that carries out an access controlled operation in a loop and run it under different policies. Listing 5-14 shows such a program that retrieves a system property, by invoking the static method getProperty() on the System class, a security sensitive operation, inside a loop and times the loop. Many rounds of measurements are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access