Interface EncryptionService
- All Superinterfaces:
Service
public interface EncryptionService extends Service
Provides APIs for encrypting or decrypting a string if encryption is enabled otherwise it's a no-op.
encrypt - API which returns the encrypted value for the provided string surrounded by "ENC()" if encryption is enabled otherwise it's a no-op. If the value is already encrypted, i.e. surrounded by "ENC()", it's a no-op
decrypt - API which returns the decrypted value for the provided encrypted string if encryption is enabled otherwise it's a no-op. Note, caller must provide the value surrounded by "ENC()"
-
Method Summary
Modifier and Type Method Description java.lang.String
decrypt(java.lang.String stringToDecrypt)
Returns the decrypted string if encryption is enabled otherwise it's a no-op.java.lang.String
encrypt(java.lang.String stringToEncrypt)
Returns the encrypted string surrounded by "ENC()" if encryption is enabled otherwise it's a no-op
-
Method Details
-
encrypt
java.lang.String encrypt(java.lang.String stringToEncrypt)Returns the encrypted string surrounded by "ENC()" if encryption is enabled otherwise it's a no-op -
decrypt
java.lang.String decrypt(java.lang.String stringToDecrypt)Returns the decrypted string if encryption is enabled otherwise it's a no-op. Please note, caller must provide the string surrounded by "ENC()" for decryption API to work
-