Openfire and unified authentication

Hi,

can I write a plugin to impl unified authentication?

or,other ways?

tks