lumis.util.security
Interface IEncryptor

Package class diagram package IEncryptor
All Known Implementing Classes:
MessageDigestEncryptor

public interface IEncryptor

Defines the methods an encryptor must implement.


Method Summary
 String decrypt(String value)
          Decrypts a string.
 String encrypt(String value)
          Encrypts a string.
 void init(Node configuration)
          This method is called only once and before any other method are called.
 

Method Detail

init

void init(Node configuration)
          throws Exception
This method is called only once and before any other method are called. This allows the encryptor to initialize itself and read any custom configuration.

Throws:
Exception

encrypt

String encrypt(String value)
               throws Exception
Encrypts a string.

Parameters:
value - the original string.
Returns:
the encrypted string.
Throws:
Exception

decrypt

String decrypt(String value)
               throws Exception
Decrypts a string.

Parameters:
value - the encrypted string.
Returns:
the string decrypted.
Throws:
Exception


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