The PRIMA system for privilege management, authorization and enforcement in grid environments