public interface SpillCipher
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encryptedData)
Decrypts encrypted data
|
ByteBuffer |
decrypt(ByteBuffer encryptedData)
Decrypts the given
ByteBuffer contents and returns them in a new ByteBuffer. |
void |
destroy()
Destroy encryption key preventing future use.
|
byte[] |
encrypt(byte[] data)
Encrypts the source data
|
ByteBuffer |
encrypt(ByteBuffer data)
Encrypts the contents of the input ByteBuffer into a new ByteBuffer instance.
|
boolean |
isDestroyed()
Indicates whether
destroy() has already been called to destroy the cipher |
byte[] encrypt(byte[] data)
ByteBuffer encrypt(ByteBuffer data)
byte[] decrypt(byte[] encryptedData)
ByteBuffer decrypt(ByteBuffer encryptedData)
ByteBuffer contents and returns them in a new ByteBuffer. The returned
instance will be at position 0 and ready to read.void destroy()
boolean isDestroyed()
destroy() has already been called to destroy the cipherCopyright © 2012–2022. All rights reserved.