Package org.gluu.oxauth.service.ciba
Class CibaEncryptionService
- java.lang.Object
-
- org.gluu.oxauth.service.ciba.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
-
-
Constructor Summary
Constructors Constructor Description CibaEncryptionService()
-
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)
-
-
-
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)
-
-