Authenticates with the XMPP server using the specified username and
password.
Namespace: S22.Xmpp.CoreAssembly: S22.Xmpp (in S22.Xmpp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- username
- Type: System..::..String
The username to authenticate with.
- password
- Type: System..::..String
The password to authenticate with.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | The username parameter or the password parameter is null. |
System.Net.Sockets..::..SocketException | An error occurred while accessing the socket used for establishing the connection to the XMPP server. Use the ErrorCode property to obtain the specific error code. |
System.Security.Authentication..::..AuthenticationException | An authentication error occured while trying to establish a secure connection, or the provided credentials were rejected by the server, or the server requires TLS/SSL and TLS has been turned off. |
System..::..InvalidOperationException | The XmppCore instance is not connected to a remote host. |
S22.Xmpp..::..XmppException | Authentication has already been performed, or an XMPP error occurred while negotiating the XML stream with the server. |
System..::..ObjectDisposedException | The XmppCore object has been disposed. |