spi 添加秘钥加解密支持

This commit is contained in:
hujun3 2022-03-25 11:08:07 +08:00
parent f1484e9f22
commit df92ad907b
2 changed files with 20 additions and 0 deletions

View File

@ -57,6 +57,16 @@ public class EncryptionPluginManagerTest {
public String algorithmName() { public String algorithmName() {
return "aes"; return "aes";
} }
@Override
public String encryptSecretKey(String secretKey) {
return secretKey;
}
@Override
public String decryptSecretKey(String secretKey) {
return secretKey;
}
}); });
Assert.assertNotNull(EncryptionPluginManager.instance().findEncryptionService("aes")); Assert.assertNotNull(EncryptionPluginManager.instance().findEncryptionService("aes"));
} }

View File

@ -52,6 +52,16 @@ public class EncryptionHandlerTest {
public String algorithmName() { public String algorithmName() {
return "aes"; return "aes";
} }
@Override
public String encryptSecretKey(String secretKey) {
return secretKey;
}
@Override
public String decryptSecretKey(String secretKey) {
return secretKey;
}
}); });
} }