public class Socks5Utils extends Object
| Constructor and Description |
|---|
Socks5Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createDigest(String sessionID,
Jid initiatorJID,
Jid targetJID)
Returns a SHA-1 digest of the given parameters as specified in XEP-0065.
|
static byte[] |
receiveSocks5Message(DataInputStream in)
Reads a SOCKS5 message from the given InputStream.
|
public Socks5Utils()
public static String createDigest(String sessionID, Jid initiatorJID, 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(DataInputStream in) throws IOException, SmackException
(see RFC1928)
in - the DataInputStream to read the message fromIOException - if a network error occurredSmackException - if the SOCKS5 message contains an unsupported address type