public class SymmetricKey.Encryptor
extends java.lang.Object
| Constructor and Description |
|---|
Encryptor()
Create an Encryptor object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encrypt(byte[] data)
Incrementally encrypt the data.
|
byte[] |
encrypt(byte[] data,
int offset,
int len)
Incrementally encrypt a subset of the data with given offset and length information.
|
public Encryptor()
throws SymmetricKeyException
SymmetricKeyExceptionpublic byte[] encrypt(byte[] data)
throws SymmetricKeyException
data - Input data to be encryptedSymmetricKeyExceptionpublic byte[] encrypt(byte[] data,
int offset,
int len)
throws SymmetricKeyException
data - Input data to be encryptedoffset - Start offset of the data to be encryptedlen - Number of bytes from the start offset of the data to be encryptedSymmetricKeyException