Commit 940fc27c authored by 赵啸非's avatar 赵啸非

添加国密4加解密接口

parent a2ed5c70
...@@ -12,13 +12,11 @@ import com.mortals.xhx.common.utils.RSAUtils; ...@@ -12,13 +12,11 @@ import com.mortals.xhx.common.utils.RSAUtils;
import com.mortals.xhx.common.utils.ServicePlatformInvoker; import com.mortals.xhx.common.utils.ServicePlatformInvoker;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.http.*;
import org.springframework.lang.NonNull; import org.springframework.lang.NonNull;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap; import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestTemplate;
import javax.crypto.Cipher; import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec; import javax.crypto.spec.SecretKeySpec;
...@@ -37,11 +35,10 @@ import java.util.List; ...@@ -37,11 +35,10 @@ import java.util.List;
* @author zxfei * @author zxfei
* @date 2022-03-09 * @date 2022-03-09
*/ */
@Service("messageService") @Service("messageCryptService")
@Slf4j @Slf4j
public class MessageServiceImpl implements MessageService { public class MessageServiceImpl implements MessageService {
private RestTemplate restTemplate = new RestTemplate();
@Override @Override
public MessageReq decryptMessage(MessageReq req) { public MessageReq decryptMessage(MessageReq req) {
......
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