Skip to content

Commit

Permalink
tests(SDK-4214) - Fixes UTs for LoginInfoProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush-Shand committed Jan 6, 2025
1 parent 2a5d865 commit 5e96d8c
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 312 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ public void run() {
if (profile.get(piiKey) != null) {
Object value = profile.get(piiKey);
if (value instanceof String) {
String encrypted = cryptHandler.encrypt((String) value, piiKey);
String encrypted = cryptHandler.encrypt((String) value, piiKey, CryptHandler.EncryptionAlgorithm.AES_GCM);
if (encrypted == null) {
passFlag = false;
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void cacheGUIDForIdentifier(String guid, String key, String identifier) {
}
try {
cache.put(cacheKey, guid);
String encryptedCache = cryptHandler.encrypt(cache.toString(), key);
String encryptedCache = cryptHandler.encrypt(cache.toString(), key, CryptHandler.EncryptionAlgorithm.AES_GCM);
if(encryptedCache == null) {
encryptedCache = cache.toString();
cryptHandler.updateMigrationFailureCount(false);
Expand Down
Loading

0 comments on commit 5e96d8c

Please sign in to comment.