This commit is contained in:
heavyrain lee
2019-03-27 22:35:22 +08:00
parent abd6668a7a
commit 25a4a54e52
7 changed files with 21 additions and 57 deletions
@@ -1,10 +1,17 @@
package io.moquette.spi.security;
import com.hazelcast.util.StringUtil;
import io.moquette.spi.impl.security.AES;
public class Tokenor {
private static final String KEY = "testim";
private static String KEY = "testim";
public static void setKey(String key) {
if (!StringUtil.isNullOrEmpty(key)) {
KEY = key;
}
}
public static String getUserId(byte[] password) {
try {