How to return the User mark "sid" from the JabberServer

I’m implements Openfire default provider

when the user login in my system ,I **wish **return the sole market ‘sid’ to the clent.

**but I do’not how to do this operation.the default interface mothed is ‘public void …()’ **