Can yo have a soft edge or blurred mask?

I was wondering if it is possible to have a mask applied through the setMask(); and have 2 out of the 4 edges blurred. That way you can can get kind of a soft wipe transition. Is it possible? Thanks!