diff options
author | Vitaly Takmazov | 2016-06-06 14:58:11 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-06 14:58:11 +0300 |
commit | e7e9bed758028e1555c9cbbcaaa29fe5504db280 (patch) | |
tree | 21145eab47562005ca02d5c75b8fdae4dd545300 /src/main/java/com/juick/xmpp/s2s | |
parent | e31024bb7cef19c2a783b5f728a8c0cfe6a9925a (diff) |
update xmpp library
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s')
-rw-r--r-- | src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java index 2a1fed5d..61ae89e0 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionRouter.java @@ -7,8 +7,8 @@ import com.juick.xmpp.Message; import com.juick.xmpp.extensions.JuickMessage; import com.juick.xmpp.extensions.Nickname; import com.juick.xmpp.extensions.XOOB; -import com.juick.xmpp.utils.SHA1; import com.juick.xmpp.utils.XmlUtils; +import org.apache.commons.codec.digest.DigestUtils; import org.xmlpull.v1.XmlPullParser; import java.io.IOException; @@ -50,7 +50,7 @@ public class ConnectionRouter extends Connection implements Runnable { throw new Exception("FAIL ON FIRST PACKET"); } - msg = "<handshake>" + SHA1.encode(streamID + "secret") + "</handshake>"; + msg = "<handshake>" + DigestUtils.sha1Hex(streamID + "secret") + "</handshake>"; writer.write(msg); writer.flush(); |