fix:企业端分标委
This commit is contained in:
-3
@@ -91,12 +91,9 @@ public class AuthenticationUtils {
|
||||
}catch (Exception e){
|
||||
throw new JeroBootException("数据同步失败!连接超时");
|
||||
}
|
||||
|
||||
RSA rsa = new RSA(null,publicKey);
|
||||
|
||||
byte[] token = rsa.encrypt(StrUtil.bytes(APPLICATION_TOKEN, CharsetUtil.CHARSET_UTF_8), KeyType.PublicKey);
|
||||
String tokenStr = Base64.getEncoder().encodeToString(token);
|
||||
|
||||
map.put("publicKey",publicKey);
|
||||
map.put("token",tokenStr);
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user