Class LocalConnectionMultiplexerSession

    • Constructor Detail

      • LocalConnectionMultiplexerSession

        public LocalConnectionMultiplexerSession​(String serverName,
                                                 Connection connection,
                                                 StreamID streamID)
    • Method Detail

      • createSession

        public static LocalConnectionMultiplexerSession createSession​(String serverName,
                                                                      org.xmlpull.v1.XmlPullParser xpp,
                                                                      Connection connection)
                                                               throws org.xmlpull.v1.XmlPullParserException
      • getAvailableStreamFeatures

        public String getAvailableStreamFeatures()
        Description copied from class: LocalSession
        Returns a text with the available stream features. Each subclass may return different values depending whether the session has been authenticated or not.
        Specified by:
        getAvailableStreamFeatures in class LocalSession
        a text with the available stream features or null to add nothing.
      • authenticate

        public boolean authenticate​(String digest)
        Authenticates the connection manager. Shared secret is validated with the one provided by the connection manager. If everything went fine then the session will have a status of "authenticated" and the connection manager will receive the client configuration options.
        digest - the digest provided by the connection manager with the handshake stanza.
        true if the connection manager was sucessfully authenticated.