public class CryptoManager extends Object implements ICryptoManager
ICryptoManager
implementation.Constructor and Description |
---|
CryptoManager() |
Modifier and Type | Method and Description |
---|---|
ICipher |
getOneWayCipher()
Returns a one-way cipher.
|
ICipher |
getReversibleCipher()
Returns a cipher that is able to encrypt data, and decrypt it back.
|
public ICipher getOneWayCipher()
ICryptoManager
The actual cipher returned depends on the encryption configuration
in lumisportalconfig.xml
. It is recommended that the one-way
cipher is configured to use an algorithm that is not possible to decrypt.
In this case, the cipher will throw UnsupportedOperationException
in its decrypt methods.
getOneWayCipher
in interface ICryptoManager
public ICipher getReversibleCipher()
ICryptoManager
The actual cipher returned depends on the encryption configuration
in lumisportalconfig.xml
.
getReversibleCipher
in interface ICryptoManager
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.