Package sn.sonatel.api.service
Class EncryptionServiceImpl
- java.lang.Object
-
- sn.sonatel.api.service.EncryptionServiceImpl
-
- All Implemented Interfaces:
EncryptionService
public class EncryptionServiceImpl extends Object implements EncryptionService
-
-
Constructor Summary
Constructors Constructor Description EncryptionServiceImpl(org.springframework.web.reactive.function.client.WebClient webClient, SonatelSdkProperties applicationProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencrypt(String message)StringgetMyEncodedPinCode()PublicKeygetPublicKey()
-
-
-
Constructor Detail
-
EncryptionServiceImpl
public EncryptionServiceImpl(@Qualifier("SONATEL") org.springframework.web.reactive.function.client.WebClient webClient, SonatelSdkProperties applicationProperties)
-
-
Method Detail
-
encrypt
public String encrypt(String message) throws IllegalArgumentException
- Specified by:
encryptin interfaceEncryptionService- Throws:
IllegalArgumentException
-
getPublicKey
public PublicKey getPublicKey()
- Specified by:
getPublicKeyin interfaceEncryptionService
-
getMyEncodedPinCode
public String getMyEncodedPinCode()
- Specified by:
getMyEncodedPinCodein interfaceEncryptionService
-
-