Hi,
I'm trying to create a plugin for OpenFire that will allow some custom data sent through in the initial stream stanza to be read and verified by the server.
I've tried using a few Interceptors and Listeners with no luck.
- PacketInterceptor - only seems to fire when the first iq stanza comes through (quite a while after the stream started)
- SessionEventListener - only seems to fire when the stream has been accepted and responded to and the session is actually created
- PresenceEventListener - fires when presence is sent after the session has been started
Is there something that I'm missing to intercept the initial stream stanza to read and verify the custom data and then abort the session if not verified?
Thanks in advance for any help.
Regards,
Phil