I am writing a PAM module for ssh service. I would like to know how can I determine within the PAM module if user is using password or password-less (KEY) method to authenticate themself. Thanks for your help