Interface ICustomerEncryptionService


  • public interface ICustomerEncryptionService
    This interface enables to encrypt / decrypt a Customer
    • Method Detail

      • encrypt

        Customer encrypt​(Customer customer,
                         Demand demand)

        Encrypts a Customer from the specified Customer.

        The provided Customer is not modified.

        Parameters:
        customer - the customer from which the Customer is encrypted. Must not be null
        demand - the demand for which the Customer is encrypted. Must not be null
        Returns:
        the encrypted Customer
      • encrypt

        Customer encrypt​(Customer customer,
                         String strCode)

        Encrypts a Customer from the specified Customer.

        The provided Customer is not modified.

        Parameters:
        customer - the customer from which the Customer is encrypted. Must not be null
        strCode - the code used to encrypt the Customer. Must not be null
        Returns:
        the encrypted Customer
      • decrypt

        Customer decrypt​(Customer customer,
                         Demand demand)

        Decrypts a Customer from the specified Customer.

        The provided Customer is not modified.

        Parameters:
        customer - the customer from which the Customer is decrypted. Must not be null
        demand - the demand for which the Customer is decrypted. Must not be null
        Returns:
        the decrypted Customer
      • decrypt

        Customer decrypt​(Customer customer,
                         String strCode)

        Decrypts a Customer from the specified Customer.

        The provided Customer is not modified.

        Parameters:
        customer - the customer from which the Customer is decrypted. Must not be null
        strCode - the code used to decrypt the Customer. Must not be null
        Returns:
        the decrypted Customer