add hashcode to security classes