Class CibaEncryptionService


  • @ApplicationScoped
    @Named
    public class CibaEncryptionService
    extends Object
    Allows to encrypt/decrypt strings using a pre-configured key from oxCore.
    Author:
    Milton BO Date: 27/04/2020
    • Constructor Detail

      • CibaEncryptionService

        public CibaEncryptionService()
    • Method Detail

      • decrypt

        public String decrypt​(String encryptedString)
                       throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • decrypt

        public String decrypt​(String encryptedValue,
                              boolean returnSource)
      • encrypt

        public String encrypt​(String unencryptedString)
                       throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • decryptAllProperties

        public Properties decryptAllProperties​(Properties connectionProperties)