Token base authentication

Hello All

can some suggest or make oepnfire authentication with token accept username and password

i need it. or How its possible

i read the openfire document and their is authencation provider class with accpet or run authentication using username and password

i need that when some login with openfire using his client he/she use his credential or token to login with openfire mean openfire main authentication process check their is simple authentication(username and password ) Or token base authentication and then based on openfire core call coressponding authentication process to login user