lumis.portal.crypto
Interface ICryptoManager

Package class diagram package ICryptoManager
All Known Implementing Classes:
CryptoManager

public interface ICryptoManager

Manages cryptographic related operations.

Since:
5.5.0

Method Summary
 ICipher getOneWayCipher()
          Returns a one-way cipher.
 ICipher getReversibleCipher()
          Returns a cipher that is able to encrypt data, and decrypt it back.
 

Method Detail

getOneWayCipher

ICipher getOneWayCipher()
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.

Returns:
the cipher.
Since:
5.5.0

getReversibleCipher

ICipher getReversibleCipher()
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.

Returns:
the cipher.
Since:
5.5.0


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.