|
@@ -71,9 +71,8 @@ public class QuartzConfig implements ApplicationRunner {
|
|
|
paramDTO.setAccount(mailboxInfoDO.getEmail());
|
|
|
String password = mailboxInfoDO.getPassword();
|
|
|
try{
|
|
|
- String publicKey = this.properties.getSecurityRsa().getPublicKey();
|
|
|
String privateKey = this.properties.getSecurityRsa().getPrivateKey();
|
|
|
- password = new RSA(privateKey, publicKey).decryptStr(password, KeyType.PrivateKey);
|
|
|
+ password = new RSA(privateKey, null).decryptStr(password, KeyType.PrivateKey);
|
|
|
}catch (Exception e){
|
|
|
logger.error(e.getMessage(),e);
|
|
|
}
|