Back to product page

Security property


Determines if SSL/TLS security will be used.

Syntax

  • Basic
object.Security [= value]
The Security(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodXMPP
valueA value.

Remarks

This property defines if wodXMPP will require SSL encryption to be used when it tries to connect to the server. You should set it to one of constants defined in SecurityEnum. It defaults to SecurityAllowed since most servers provide SSL encryption (but it's not required). SecurityAllowed and SecurityRequired connect on port 5222 and start unencrypted connection, and then tries to switch to SSL. SecurityImplicit assumes server already uses SSL when we try to connect to it.

Platforms

Windows