Performance: @Secured annotation
MEDIUM IMPACT
This annotation affects server-side request handling speed and security checks, impacting response time and user interaction delay.
@Secured("ROLE_ADMIN")
public void process() {
// method logic
}@Secured({"ROLE_ADMIN", "ROLE_USER"})
public void process() {
// method logic
}| Pattern | Security Checks | Request Delay | User Interaction Delay | Verdict |
|---|---|---|---|---|
| Multiple roles in @Secured | Multiple role checks | Increased by ~1-3ms | Slightly higher INP | [!] OK |
| Single role in @Secured | Single role check | Minimal delay | Better INP | [OK] Good |