Class Socks5Utils


  • public class Socks5Utils
    extends Object
    A collection of utility methods for SOcKS5 messages.
    • Method Detail

      • createDigest

        public static String createDigest​(String sessionID,
                                          Jid initiatorJID,
                                          Jid targetJID)
        Returns a SHA-1 digest of the given parameters as specified in XEP-0065.
        Parameters:
        sessionID - for the SOCKS5 Bytestream
        initiatorJID - JID of the initiator of a SOCKS5 Bytestream
        targetJID - JID of the target of a SOCKS5 Bytestream
        Returns:
        SHA-1 digest of the given parameters