Defensive Programming in Java: Data Security and Access Control