this function gets called when a client tries to authenticate or offer a public key.
See Implementation
this function gets called when a client tries to authenticate or offer a public key.