Interface IEncryptor


  • @Deprecated
    public interface IEncryptor
    Deprecated.
    Since 5.5.0, replaced by the lumis.portal.crypto package.
    Defines the methods an encryptor must implement.
    Since:
    4.0.0
    Version:
    $Revision: 11180 $ $Date: 2009-12-04 18:13:02 -0200 (Fri, 04 Dec 2009) $
    • Method Detail

      • init

        void init​(Node configuration)
           throws Exception
        Deprecated.
        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
        Deprecated.
        Encrypts a string.
        Parameters:
        value - the original string.
        Returns:
        the encrypted string.
        Throws:
        Exception
      • decrypt

        String decrypt​(String value)
                throws Exception
        Deprecated.
        Decrypts a string.
        Parameters:
        value - the encrypted string.
        Returns:
        the string decrypted.
        Throws:
        Exception