Package io.jans.as.server.service.ciba
Class CibaEncryptionService
- java.lang.Object
-
- io.jans.as.server.service.ciba.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 Summary
Constructors Constructor Description CibaEncryptionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decrypt(String encryptedString)
String
decrypt(String encryptedValue, boolean returnSource)
Properties
decryptAllProperties(Properties connectionProperties)
Properties
decryptProperties(Properties connectionProperties)
String
encrypt(String unencryptedString)
-
-
-
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
-
decryptProperties
public Properties decryptProperties(Properties connectionProperties)
-
decryptAllProperties
public Properties decryptAllProperties(Properties connectionProperties)
-
-