tigase.server.xmppserver

## Class S2SIOService

- java.lang.Object
- - tigase.net.IOService<RefObject>
  - - tigase.xmpp.XMPPIOService<Object>
    - - tigase.server.xmppserver.S2SIOService

- All Implemented Interfaces:
    Callable<IOService<?>>, TLSEventHandler

      public class S2SIOService
      extends XMPPIOService<Object>

  Created: Jun 14, 2010 12:30:53 PM
  Version:
    $Rev$
  Author:
    Artur Hefczyc

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `HANDSHAKING_DOMAIN_KEY`
    `protected static String` | `HANDSHAKING_ONLY_KEY`
    `static String` | `S2S_CONNECTION_KEY` Field description

    - ### Fields inherited from class tigase.xmpp.XMPPIOService

      `ACK_NAME, CROSS_DOMAIN_POLICY_FILE_PROP_KEY, CROSS_DOMAIN_POLICY_FILE_PROP_VAL, ID_ATT, parser, REQ_NAME, writeInProgress`

    - ### Fields inherited from class tigase.net.IOService

      `cb, CERT_CHECK_RESULT, decoder, encoder, HOSTNAME_KEY, partialCharacterBytes, PORT_TYPE_PROP_KEY, SESSION_ID_KEY, SSL_PROTOCOLS_KEY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `S2SIOService()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCID(CID cid)` Adds another connection id (CID) to the authenticated list for this connection
    `Set<CID>` | `getCIDs()` Method description
    `S2SConnection` | `getS2SConnection()` Method description
    `String` | `getSessionId()` Method description
    `boolean` | `isAuthenticated()` Method description
    `boolean` | `isAuthenticated(CID cid)` Method description
    `boolean` | `isHandshakingOnly()` Method description
    `void` | `setDBKey(String key)` Method description
    `void` | `setS2SConnection(S2SConnection s2s_conn)` Method description
    `void` | `setSessionId(String session_id)` Method description
    `String` | `toString()` Method description

    - ### Methods inherited from class tigase.xmpp.XMPPIOService

      `addPacketToSend, addReceivedPacket, checkData, forceStop, getPacketsReceived, getPacketsSent, getReceivedPackets, getTotalPacketsReceived, getTotalPacketsSent, getUserJid, getWaitingForAct, getXMLNS, processSocketData, processWaitingPackets, receivedPackets, setAckMode, setIOServiceListener, setProcessors, setUserJid, setXMLNS, stop, writeRawData, xmppStreamClosed, xmppStreamOpen, xmppStreamOpened`

    - ### Methods inherited from class tigase.net.IOService

      `accept, byteOrder, call, connectionType, debug, debug, getBuffOverflow, getBytesReceived, getBytesSent, getConnectionId, getDataReceiver, getLastTransferTime, getLocalAddress, getPeersJIDsFromCert, getReadCounters, getRefObject, getRemoteAddress, getSessionData, getSocketChannel, getStatistics, getTotalBuffOverflow, getTotalBytesReceived, getTotalBytesSent, getUniqueId, getWriteCounters, getX509TrustManagers, handshakeCompleted, isConnected, isInputBufferEmpty, readBytes, readCompleted, readData, setConnectionId, setDataReceiver, setIOServiceListener, setRefObject, setSessionData, setX509TrustManagers, startSSL, startTLS, startZLib, waitingToRead, waitingToSend, waitingToSendSize, writeBytes, writeData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### S2S_CONNECTION_KEY

          public static final String S2S_CONNECTION_KEY

      Field description
      See Also:
        Constant Field Values

    - #### HANDSHAKING_DOMAIN_KEY

          public static final String HANDSHAKING_DOMAIN_KEY

      See Also:
        Constant Field Values

    - #### HANDSHAKING_ONLY_KEY

          protected static final String HANDSHAKING_ONLY_KEY

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### S2SIOService

          public S2SIOService()

  - ### Method Detail

    - #### addCID

          public void addCID(CID cid)

      Adds another connection id (CID) to the authenticated list for this connection
      Parameters:
        `cid` -

    - #### getCIDs

          public Set<CID> getCIDs()

      Method description
      Returns:

    - #### getS2SConnection

          public S2SConnection getS2SConnection()

      Method description
      Returns:

    - #### getSessionId

          public String getSessionId()

      Method description
      Returns:

    - #### isAuthenticated

          public boolean isAuthenticated(CID cid)

      Method description
      Parameters:
        `cid` -
      Returns:

    - #### isAuthenticated

          public boolean isAuthenticated()

      Method description
      Returns:

    - #### isHandshakingOnly

          public boolean isHandshakingOnly()

      Method description
      Returns:

    - #### setDBKey

          public void setDBKey(String key)

      Method description
      Parameters:
        `key` -

    - #### setS2SConnection

          public void setS2SConnection(S2SConnection s2s_conn)

      Method description
      Parameters:
        `s2s_conn` -

    - #### setSessionId

          public void setSessionId(String session_id)

      Method description
      Parameters:
        `session_id` -

    - #### toString

          public String toString()

      Method description
      Overrides:
        `toString` in class `XMPPIOService<Object>`
      Returns:

Copyright © 2013 Tigase. All rights reserved.