Three criteria for particle acceleration in collisionless shocks