K8082 encoder data sheet

Would someone be kind enough to point to the datasheet for the rotary encoder used in the K8082 Safe-Style Lock? Also, I see in the schematic that the two terminals are connected to RA1 and RA5 of the PIC16F630. Can anyone provide an explanation as to how these two elements are working together in conjunction? Thank you very much for your time!

All info regarding the encoder can be found here: http://www.taiwanalpha.com/en/product.htm
Sorry, no circuit descriptions.