public class AesBufferFilter extends MadaraJNI implements BufferFilter
| Constructor and Description |
|---|
AesBufferFilter()
Default constructor
|
AesBufferFilter(AesBufferFilter input)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
decode(byte[] buffer,
long size,
long maxSize)
Decodes a buffer
|
long |
encode(byte[] buffer,
long size,
long maxSize)
Encodes a buffer
|
protected void |
finalize()
Cleans up underlying C resources
|
void |
free()
Deletes the C instantiation.
|
int |
generateKey(java.lang.String password)
Generates a 256 bit AES key from a password
|
public AesBufferFilter()
public AesBufferFilter(AesBufferFilter input)
input - instance to copypublic long encode(byte[] buffer,
long size,
long maxSize)
encode in interface BufferFilterbuffer - a map of all variable names to valuessize - the initial size of the buffermaxSize - the maximum size of the bufferpublic long decode(byte[] buffer,
long size,
long maxSize)
decode in interface BufferFilterbuffer - a map of all variable names to valuessize - the initial size of the buffermaxSize - the maximum size of the bufferpublic int generateKey(java.lang.String password)
password - a password to usepublic void free()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - necessary for override but unused