Package lumis.portal.crypto
Provides the API for cryptographic related operations.
This package offer a higher-level simpler API, focused to be easier to use than the Java Cryptography Architecture. As being simpler, this API also offer less features, because it hides lower-level implementation details.
A one-way and a reversible cipher is provided to be used. The algorithm
used by each one is specified in the lumisportalconfig.xml
configuration file. Note that changing the configuration may cause further
encryption to be incompatible with previous ones.
The cipher can be obtained accessing the ICryptoManager
,
available using ManagerFactory.getCryptoManager()
.
A customized cipher class can be created implementing the
ICipherSpi
interface.
- Since:
- 5.5.0
- Version:
- $Revision: 11180 $ $Date: 2009-12-04 18:13:02 -0200 (Fri, 04 Dec 2009) $
-
Interface Summary Interface Description ICipher Defines the methods a cipher must implement.ICipherSpi Interface to be implemented by customized ciphers.ICryptoManager Manages cryptographic related operations. -
Class Summary Class Description AbstractCipher An abstractICipher
implementation for easing concrete implementations.CryptoManager ICryptoManager
implementation.MessageDigestCipher Uses a MessageDigest algorithm to encrypt data.SymmetricCipher Generic cipher implementation, based on symmetric ciphers available in the Java Cryptography Architecture (JCA). -
Exception Summary Exception Description InvalidEncryptedValueException Thrown to indicate that an invalid encrypted value was used.