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 Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String decrypt​(java.lang.String value)
      Deprecated.
      Decrypts a string.
      java.lang.String encrypt​(java.lang.String value)
      Deprecated.
      Encrypts a string.
      void init​(org.w3c.dom.Node configuration)
      Deprecated.
      This method is called only once and before any other method are called.
    • Method Detail

      • init

        void init​(org.w3c.dom.Node configuration)
           throws java.lang.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:
        java.lang.Exception
      • encrypt

        java.lang.String encrypt​(java.lang.String value)
                          throws java.lang.Exception
        Deprecated.
        Encrypts a string.
        Parameters:
        value - the original string.
        Returns:
        the encrypted string.
        Throws:
        java.lang.Exception
      • decrypt

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