diff options
author | Alexander Alexeev | 2016-12-07 20:05:38 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-07 22:37:17 +0300 |
commit | d65ceebd7b46ed9a993cb7c6ad5d01b0fffde3d4 (patch) | |
tree | d0132eb45df999503f8bb5712cfccfdce72d6cb5 /juick-xmpp/src/main/java/com/juick/components | |
parent | 69a5bdba32cdf0a48e51baa8c9fb28dca013f515 (diff) |
code style improvenments
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java b/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java index 3bb786e5..980c2d6a 100644 --- a/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java +++ b/juick-xmpp/src/main/java/com/juick/components/s2s/util/DialbackUtils.java @@ -7,6 +7,10 @@ import org.apache.commons.codec.digest.HmacUtils; * Created by vitalyster on 05.12.2016. */ public class DialbackUtils { + private DialbackUtils() { + throw new IllegalStateException(); + } + public static String generateDialbackKey(String secret, String to, String from, String id) { return HmacUtils.hmacSha256Hex(DigestUtils.sha256(secret), (to + " " + from + " " + id).getBytes()); |