Interface ByteBufferDecryptor


public interface ByteBufferDecryptor
Byte Buffer Decryptor abstracts Cipher decryption operations
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    decrypt(ByteBuffer inputBuffer, ByteBuffer outputBuffer)
    Read encrypted input buffer and write decrypted bytes to output buffer
  • Method Details

    • decrypt

      int decrypt(ByteBuffer inputBuffer, ByteBuffer outputBuffer) throws GeneralSecurityException
      Read encrypted input buffer and write decrypted bytes to output buffer
      Parameters:
      inputBuffer - Encrypted Input Byte Buffer
      outputBuffer - Decrypted Output Byte Buffer
      Returns:
      Number of bytes stored in Output Byte Buffer
      Throws:
      GeneralSecurityException - Thrown on decryption failures