Openfire Login

I realize that it isn’t as simple as one script but what java files handle login/auth. If someone logs in, what files in openfire handle authenticating them and then saying ok your good to go login?