Interface ByteBufferEncryptor


public interface ByteBufferEncryptor
Byte Buffer Encryptor abstracts Cipher encryption operations
  • Method Summary

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

    • encrypt

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