Class CibaEncryptionService


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decrypt​(java.lang.String encryptedString)  
      java.lang.String decrypt​(java.lang.String encryptedValue, boolean returnSource)  
      java.util.Properties decryptAllProperties​(java.util.Properties connectionProperties)  
      java.util.Properties decryptProperties​(java.util.Properties connectionProperties)  
      java.lang.String encrypt​(java.lang.String unencryptedString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CibaEncryptionService

        public CibaEncryptionService()
    • Method Detail

      • decrypt

        public java.lang.String decrypt​(java.lang.String encryptedString)
                                 throws org.gluu.util.security.StringEncrypter.EncryptionException
        Throws:
        org.gluu.util.security.StringEncrypter.EncryptionException
      • decrypt

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

        public java.lang.String encrypt​(java.lang.String unencryptedString)
                                 throws org.gluu.util.security.StringEncrypter.EncryptionException
        Throws:
        org.gluu.util.security.StringEncrypter.EncryptionException
      • decryptProperties

        public java.util.Properties decryptProperties​(java.util.Properties connectionProperties)
      • decryptAllProperties

        public java.util.Properties decryptAllProperties​(java.util.Properties connectionProperties)