Determination of supermassive black hole spins in active galactic nuclei