Class EncryptionService

  • All Implemented Interfaces:
    Serializable

    @ApplicationScoped
    public class EncryptionService
    extends Object
    implements Serializable
    Allows to decrypted properties with passwords
    Author:
    Yuriy Movchan Date: 09/23/2014
    See Also:
    Serialized Form
    • Constructor Detail

      • EncryptionService

        public EncryptionService()
    • Method Detail

      • decrypt

        public String decrypt​(String encryptedString)
                       throws io.jans.util.security.StringEncrypter.EncryptionException
        Throws:
        io.jans.util.security.StringEncrypter.EncryptionException
      • 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)