A mechanism for rotamase catalysis by the FK506 binding protein (FKBP).