Interface Cipher

All Known Implementing Classes:
AES, DHE, NEH, RSA

public interface Cipher
SubData Cipher Layout Class
  • Method Details

    • getName

      String getName()
      Get the name of this Cipher
      Returns:
      Cipher Name
    • encrypt

      void encrypt(DataClient client, InputStream in, OutputStream out) throws Exception
      Encrypt Data
      Parameters:
      client - Client
      in - Decrypted Data
      out - Encrypted Data
      Throws:
      Exception
    • decrypt

      void decrypt(DataClient client, InputStream in, OutputStream out) throws Exception
      Decrypt Data
      Parameters:
      client - Client
      in - Encrypted Data
      out - Decrypted Data
      Throws:
      Exception
    • retire

      default void retire(DataClient client)
      Retire this encryption method for a specified Client
      Parameters:
      client - Client