Interface ByteBufferEncryptor
public interface ByteBufferEncryptor
Byte Buffer Encryptor abstracts Cipher encryption operations
-
Method Summary
Modifier and TypeMethodDescriptionintencrypt(ByteBuffer inputBuffer, ByteBuffer outputBuffer) Read input buffer and write encrypted bytes to output buffer
-
Method Details
-
encrypt
Read input buffer and write encrypted bytes to output buffer- Parameters:
inputBuffer- Input Byte BufferoutputBuffer- Encrypted Output Byte Buffer- Returns:
- Number of bytes stored in Output Byte Buffer
- Throws:
GeneralSecurityException- Thrown on encryption failures
-