Almas authority

Can anyone comment on Alma's authority to baptize. If Alma was one of King Noah's priests, wouldn't his priesthood be evil? How/where did he obtain the Aaronic Priesthood?