diff options
Diffstat (limited to 'src/main/java/com/juick/CrosspostComponent.java')
-rw-r--r-- | src/main/java/com/juick/CrosspostComponent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/CrosspostComponent.java b/src/main/java/com/juick/CrosspostComponent.java index c277ee68..d5f13ab2 100644 --- a/src/main/java/com/juick/CrosspostComponent.java +++ b/src/main/java/com/juick/CrosspostComponent.java @@ -23,7 +23,7 @@ import com.juick.xmpp.Message; import com.juick.xmpp.Stream; import com.juick.xmpp.StreamComponent; import com.juick.xmpp.extensions.JuickMessage; -import com.juick.xmpp.utils.Base64; +import org.apache.commons.codec.binary.Base64; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; @@ -307,7 +307,7 @@ public class CrosspostComponent implements ServletContextListener, Stream.Strea Mac mac = Mac.getInstance("HmacSHA1"); mac.init(signingKey); byte[] rawHmac = mac.doFinal(base.getBytes()); - return Base64.encode(rawHmac); + return Base64.encodeBase64String(rawHmac); } catch (Exception e) { logger.log(Level.SEVERE, "twitterSignature: " + e.getMessage(), e); |