From 3b601bb83bc5c6971c6f0d278267945f7ca8c567 Mon Sep 17 00:00:00 2001 From: rlaisqls Date: Wed, 10 May 2023 14:44:15 +0900 Subject: [PATCH] chore: (#490) code smell --- .../dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt b/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt index a59414006..d8451546b 100644 --- a/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt +++ b/dms-infrastructure/src/main/kotlin/team/aliens/dms/thirdparty/encrypt/aop/EntityEncryptAspect.kt @@ -83,10 +83,10 @@ class EntityEncryptAspect( when (f.getAnnotation(EncryptedColumn::class.java).type) { EncryptType.SYMMETRIC -> encryptPort.symmetricEncrypt( secretKey = getSchoolKey(), - plainText = f.get(obj) as String + plainText = f[obj] as String ) EncryptType.ASYMMETRIC -> encryptPort.asymmetricEncrypt( - plainText = f.get(obj) as String + plainText = f[obj] as String ) } } @@ -97,10 +97,10 @@ class EntityEncryptAspect( when (f.getAnnotation(EncryptedColumn::class.java).type) { EncryptType.SYMMETRIC -> encryptPort.symmetricDecrypt( secretKey = getSchoolKey(), - cipherText = f.get(obj) as String + cipherText = f[obj] as String ) EncryptType.ASYMMETRIC -> encryptPort.asymmetricDecrypt( - cipherText = f.get(obj) as String + cipherText = f[obj] as String ) } }