Security concerns for distributed applications implemented in Spring