public class Socks5Utils
extends java.lang.Object
Constructor and Description |
---|
Socks5Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createDigest(java.lang.String sessionID,
org.jxmpp.jid.Jid initiatorJID,
org.jxmpp.jid.Jid targetJID)
Returns a SHA-1 digest of the given parameters as specified in XEP-0065.
|
static byte[] |
receiveSocks5Message(java.io.DataInputStream in)
Reads a SOCKS5 message from the given InputStream.
|
public static java.lang.String createDigest(java.lang.String sessionID, org.jxmpp.jid.Jid initiatorJID, org.jxmpp.jid.Jid targetJID)
sessionID
- for the SOCKS5 BytestreaminitiatorJID
- JID of the initiator of a SOCKS5 BytestreamtargetJID
- JID of the target of a SOCKS5 Bytestreampublic static byte[] receiveSocks5Message(java.io.DataInputStream in) throws java.io.IOException, org.jivesoftware.smack.SmackException.SmackMessageException
(see RFC1928)
in
- the DataInputStream to read the message fromjava.io.IOException
- if a network error occurredorg.jivesoftware.smack.SmackException.SmackMessageException
- if the SOCKS5 message contains an unsupported address type