| Example |
| Problem category |
| Security : J2EE Security |
| Problem name |
| Avoid calling javax.security.auth.Subject.doAsPrivileged
()
|
| Description |
|
Avoid calling javax.security.auth.Subject.doAsPrivileged
()
. When a code block is marked as privileged, it can call services based on its permissions even if some of its callers do not have those permissions. Minimize privileges in your application. |
| Solution | |
Avoid calling javax.security.auth.Subject.doAsPrivileged
()
|