Interface ICryptingDelegate

All Known Implementing Classes:
DefaultCryptingDelegate

public interface ICryptingDelegate
Delegate for encrypting and decrypting.
Author:
ralph
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decrypt(byte[] bytes)
    Decrypts the given bytes.
    byte[]
    encrypt(byte[] bytes)
    Encrypts the given bytes.
    void
    Initialize the delegate.
  • Method Details

    • init

      void init(ICryptingDelegateFactory factory)
      Initialize the delegate.
      Parameters:
      factory - factory for the delegate.
    • encrypt

      byte[] encrypt(byte[] bytes) throws Exception
      Encrypts the given bytes.
      Parameters:
      bytes - bytes to be encrypted
      Returns:
      encrypted bytes
      Throws:
      Exception - when an error occurs
    • decrypt

      byte[] decrypt(byte[] bytes) throws Exception
      Decrypts the given bytes.
      Parameters:
      bytes - bytes to be decrypted
      Returns:
      decrypted bytes
      Throws:
      Exception - when an error occurs