[jdev] Re: How can I verify the JID validity?
snake at penza-gsm.ru
Wed Mar 16 23:19:25 CST 2005
В сообщении от Среда 16 Март 2005 23:12 George Hazan написал(a):
> Hello, Peter!
> Wed, 16 Mar 2005 11:58:01 -0600 you wrote:
> >> I wanna test that a certain JID is valid on a jabber server. How can I
> >> ensure that without trying to add him into the roster? Right now I
> >> couldn't find anything better than fetching a vcard - if an error
> >> occurs, then this JID is invalid.
> PSA> What do you mean by "valid" and "invalid"? Do you mean that the JID is
> PSA> already taken/registered?
> Yes, just to verify the user input, but without trying to add a contact
> into my contact list. I dunno if the word 'addable' exists, but it
> describes what I want pretty good :)
Generally such info should be considered security-sensitive so server (at
least server with in-band registration turned off) should not present such
BTW even the servers with opened IBR presening such info in different formats.
More information about the JDev