lumis.portal.crypto
Class CryptoManager

Package class diagram package CryptoManager
java.lang.Object
  extended by lumis.portal.crypto.CryptoManager
All Implemented Interfaces:
ICryptoManager

public class CryptoManager
extends Object
implements ICryptoManager

ICryptoManager implementation.

Since:
5.5.0

Constructor Summary
CryptoManager()
           
 
Method Summary
 ICipher getOneWayCipher()
          Returns a one-way cipher.
 ICipher getReversibleCipher()
          Returns a cipher that is able to encrypt data, and decrypt it back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoManager

public CryptoManager()
Method Detail

getOneWayCipher

public ICipher getOneWayCipher()
Description copied from interface: ICryptoManager
Returns a one-way cipher.

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.

Specified by:
getOneWayCipher in interface ICryptoManager
Returns:
the cipher.

getReversibleCipher

public ICipher getReversibleCipher()
Description copied from interface: ICryptoManager
Returns a cipher that is able to encrypt data, and decrypt it back.

The actual cipher returned depends on the encryption configuration in lumisportalconfig.xml.

Specified by:
getReversibleCipher in interface ICryptoManager
Returns:
the cipher.


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.