Package | org.igniterealtime.xiff.core |
Class | public class XMPPTLSConnection |
Inheritance | XMPPTLSConnection ![]() ![]() |
Implements | IXMPPConnection |
See also
Property | Defined By | ||
---|---|---|---|
![]() | active : Boolean
Determines whether the connection with the server is currently active. | XMPPConnection | |
![]() | compress : Boolean
Shall the Stream Compression be allowed if the server supports it. | XMPPConnection | |
![]() | compressor : ICompressor
The class that is to be used for Stream Compression if enabled. | XMPPConnection | |
config : TLSConfig
TLS configuration. | XMPPTLSConnection | ||
![]() | domain : String
The XMPP domain to use with the server. | XMPPConnection | |
![]() | incomingBytes : uint [read-only]
Get the total count of the received bytes in the current session. | XMPPConnection | |
![]() | jid : UnescapedJID [read-only]
Gets the fully qualified unescaped JID of the user. | XMPPConnection | |
![]() | loggedIn : Boolean
Determines whether the user is connected and logged into the server. | XMPPConnection | |
![]() | openConnections : Array [static] [read-only]
Reference to all active connections. | XMPPConnection | |
![]() | outgoingBytes : uint [read-only]
Get the total count of the bytes sent in the current session. | XMPPConnection | |
![]() | password : String
The password to use when logging in. | XMPPConnection | |
![]() | port : uint
The port to use when connecting. | XMPPConnection | |
![]() | queuePresences : Boolean
Should the connection queue presence events for a small interval so that it can
send multiple in a batch?
| XMPPConnection | |
![]() | registrationSupported : Boolean [read-only]
Does the connection support registration. | XMPPConnection | |
![]() | resource : String
The resource to use when logging in. | XMPPConnection | |
![]() | server : String
The XMPP server to use for connection. | XMPPConnection | |
tls : Boolean
Specifies whether to enable TLS. | XMPPTLSConnection | ||
![]() | useAnonymousLogin : Boolean
Whether to use anonymous login or not. | XMPPConnection | |
![]() | username : String
The username to use for connection. | XMPPConnection |
Method | Defined By | ||
---|---|---|---|
Constructor. | XMPPTLSConnection | ||
connect(streamType:uint = 0):void [override]
| XMPPTLSConnection | ||
![]() | disableExtensions(... exts):void
Disable the given extensions from the registery. | XMPPConnection | |
![]() | disableSASLMechanism(name:String):void
Remove a SASL mechanism from this connection
| XMPPConnection | |
disconnect():void [override]
| XMPPTLSConnection | ||
![]() | enableExtensions(... exts):void
Enable the given extensions for interacting with the incoming data. | XMPPConnection | |
![]() | enableSASLMechanism(name:String, authClass:Class):void
Add a SASL mechanism available for this connection
| XMPPConnection | |
![]() | send(data:IXMPPStanza):void
Sends data to the server. | XMPPConnection | |
![]() | sendKeepAlive():void
Sends ping to server in order to keep the connection alive, in case the server
has not indicated that it would not support it. | XMPPConnection |
Method | Defined By | ||
---|---|---|---|
![]() | beginAuthentication():void
SASL Authentication should been set up, begin the authentication
process by sending the initial request. | XMPPConnection | |
![]() | bindConnection():void
Upon being so informed that resource binding is required, the client
MUST bind a resource to the stream by sending to the server an IQ
stanza of type "set" (see IQ Semantics (Section 9.2.3)) containing
data qualified by the 'urn:ietf:params:xml:ns:xmpp-bind' namespace. | XMPPConnection | |
![]() | checkIncomingData(bytedata:ByteArray):XML
Check if the incoming data is complete once added to any existing
incoming data. | XMPPConnection | |
![]() | chooseStreamTags(type:uint):void
Choose the stream start and ending tags based on the given type. | XMPPConnection | |
![]() | configureAuthMechanisms(mechanisms:XML):void
Use the authentication which is first in the list (saslMechanisms) if possible. | XMPPConnection | |
![]() | configureStreamCompression(method:String = zlib):void
Zlib is the most common and the one which is required to be implemented in case
Stream Compression is used. | XMPPConnection | |
configureTLSSocket():void | XMPPTLSConnection | ||
![]() | createConnection():void
Set up the connection and listeners related to this class. | XMPPConnection | |
![]() | dispatchError(condition:String, message:String, type:String, code:int = 0, extension:Extension = null):void | XMPPConnection | |
![]() | establishSession():void
Runs after binding
| XMPPConnection | |
![]() | flushPresenceQueue(event:TimerEvent):void
Dispatches a single PresenceEvent in case there are any in the
queue. | XMPPConnection | |
![]() | handleAuthentication(response:XML):void
Upon receiving a success indication within the SASL negotiation, the
client MUST send a new stream header to the server, to which the
server MUST respond with a stream header as well as a list of
available stream features. | XMPPConnection | |
![]() | handleMessage(node:XML):void
TODO: Add similar extension handling as in IQ,
after message specific extensions are separated from Message class, v3.2.0
| XMPPConnection | |
handleNodeType(node:XML):void [override]
Calls a appropriate parser base on the nodeName. | XMPPTLSConnection | ||
![]() | handlePresence(node:XML):Presence
Handle the incoming Presence either with the queue timer or directly
dispatching the PresenceEvent. | XMPPConnection | |
![]() | handleStream(node:XML):void
Initial stream element has been received once this method is called. | XMPPConnection | |
![]() | handleStreamError(node:XML):void
Handle stream error related element. | XMPPConnection | |
![]() | handleStreamFeatures(node:XML):void
Handle features that are available in the connected server. | XMPPConnection | |
handleStreamTLS(node:XML):void [override]
In case the user or the server requires the use of TLS, this method
will initiate the handshake. | XMPPTLSConnection | ||
![]() | onIOError(event:IOErrorEvent):void
This fires the standard dispatchError method
| XMPPConnection | |
![]() | parseDataReceived(bytedata:ByteArray):void
Parses the data which the socket just received. | XMPPConnection | |
![]() | removeSocketEventListeners():void
Remove those listeners that the createConnection method added. | XMPPConnection | |
Remove those listeners that the configureTLSSocket method added. | XMPPTLSConnection | ||
![]() | sendData(data:String):void
Dispatches OutgoingDataEvent, handles possible Stream Compression and
calls sendDataToServer. | XMPPConnection | |
![]() | sendDataToServer(data:ByteArray):void
Overwrite this method to use other kind of socket,
request or connection, if needed. | XMPPConnection | |
![]() | sendXML(data:String):void
Pass through to sendData which takes care of the common
data handling between all connection classes. | XMPPConnection | |
![]() | serviceDiscoveryResponce(to:EscapedJID, id:String):void
Send a response to the Service Discovery query. | XMPPConnection |
config | property |
config:TLSConfig
TLS configuration.
public function get config():TLSConfig
public function set config(value:TLSConfig):void
tls | property |
tls:Boolean
Specifies whether to enable TLS.
The default value is false
.
public function get tls():Boolean
public function set tls(value:Boolean):void
XMPPTLSConnection | () | Constructor |
public function XMPPTLSConnection()
Constructor.
The connection socket created in XMPPConnection is used until the server responds as "proceed".
configureTLSSocket | () | method |
protected function configureTLSSocket():void
See also
connect | () | method |
override public function connect(streamType:uint = 0):void
Parameters
streamType:uint (default = 0 )
|
disconnect | () | method |
override public function disconnect():void
handleNodeType | () | method |
override protected function handleNodeType(node:XML):void
Calls a appropriate parser base on the nodeName.
Parameters
node:XML |
handleStreamTLS | () | method |
override protected function handleStreamTLS(node:XML):void
In case the user or the server requires the use of TLS, this method will initiate the handshake.
Parameters
node:XML |
removeTLSSocketEventListeners | () | method |
protected function removeTLSSocketEventListeners():void
Remove those listeners that the configureTLSSocket
method added.