What are the common ways to authenticate users using Mina?

The first attempt I made was using a state machine, but I had problems integrating that with an IoHandler.

In retrospect, the state machine seems like overkill; so I was hoping to get ideas for other ways to authenticate users, or maybe a link to an application that does some authentication.

would it be terrible to do something like this?

public void sessionCreated(IoSession session) {
authenticateUser() // < ----- Good idea? Bad Idea? Run in a separate thread?
}

Any help/ideas would be appreciated .

Thanks.
Hunter.

Reply via email to