Interface ByteEncryptor

All Known Subinterfaces:
PBEByteCleanablePasswordEncryptor, PBEByteEncryptor
All Known Implementing Classes:
PooledPBEByteEncryptor, StandardPBEByteEncryptor

public interface ByteEncryptor

Common interface for all Encryptors which receive a byte array message and return a byte array result.

Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decrypt(byte[] encryptedMessage)
    Decrypt an encrypted message
    byte[]
    encrypt(byte[] message)
    Encrypt the input message
  • Method Details

    • encrypt

      byte[] encrypt(byte[] message)
      Encrypt the input message
      Parameters:
      message - the message to be encrypted
      Returns:
      the result of encryption
    • decrypt

      byte[] decrypt(byte[] encryptedMessage)
      Decrypt an encrypted message
      Parameters:
      encryptedMessage - the encrypted message to be decrypted
      Returns:
      the result of decryption