Tuesday, June 7, 2011

Twelve rules for developing more secure Java code-Rule 2


Rule 2: Limit access to your classes, methods, and variables

Every class, method, and variable that is not private provides a potential entry point for an attacker. By default, everything should be private. Make something nonprivate only with good reason, and document that reason.

No comments: