Can Passwords be Required for Incoming calls?

I’m very new to asterisk and I would like to know if it can be programmed with a script so that I can require an incoming caller to enter a password that I previously assigned to him in order to be able to ring my phone or, if I do not answer in some number of rings, be sent to voicemail? Failure to enter a correct password would result in his incoming call being dropped (could not even leave voicemail).

I don’t need details of how to do it, just want to know if it can be done.

Thanks very much.

Yes, but this is the wrong forum. (DISA, Authenticate, or VMAuthenticate)