Commit 9d9d045e authored by Matt Tucker's avatar Matt Tucker Committed by matt

Removed cookieKey (wasn't used).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@132 b35dd754-fafc-0310-a699-88a17e54d16e
parent 79b599b8
......@@ -14,7 +14,6 @@ package org.jivesoftware.messenger.auth;
import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.StringUtils;
import org.jivesoftware.messenger.JiveGlobals;
import org.jivesoftware.messenger.auth.spi.AuthTokenImpl;
import org.jivesoftware.messenger.user.UserIDProvider;
import org.jivesoftware.messenger.user.UserNotFoundException;
......@@ -65,14 +64,6 @@ public abstract class AuthFactory {
authProvider = AuthProviderFactory.getAuthProvider();
userIDProvider = UserProviderFactory.getUserIDProvider();
// Get the cookie password, stored as a Jive property. Obviously,
// protecting your jive_config.xml file is critical for making cookie
// encryption secure.
String keyString = JiveGlobals.getProperty("cookieKey");
if (keyString == null) {
keyString = StringUtils.randomString(15);
JiveGlobals.setProperty("cookieKey", keyString);
}
try {
sha = MessageDigest.getInstance("SHA");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment