public interface EncryptionSpi extends IgniteSpi
Modifier and Type | Method and Description |
---|---|
int |
blockSize() |
Serializable |
create()
Creates new key for an encryption/decryption of cache persistent data: pages, WAL records.
|
byte[] |
decrypt(byte[] data,
Serializable key)
Decrypts data encrypted with
encrypt(ByteBuffer, Serializable, ByteBuffer) |
Serializable |
decryptKey(byte[] key)
Decrypts key and checks it integrity.
|
void |
decryptNoPadding(ByteBuffer data,
Serializable key,
ByteBuffer res)
Decrypts data encrypted with
encryptNoPadding(ByteBuffer, Serializable, ByteBuffer) |
void |
encrypt(ByteBuffer data,
Serializable key,
ByteBuffer res)
Encrypts data.
|
int |
encryptedSize(int dataSize) |
int |
encryptedSizeNoPadding(int dataSize) |
byte[] |
encryptKey(Serializable key)
Encrypts key.
|
void |
encryptNoPadding(ByteBuffer data,
Serializable key,
ByteBuffer res)
Encrypts data without padding info.
|
byte[] |
masterKeyDigest()
Returns master key digest.
|
getName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitialized, spiStart, spiStop
byte[] masterKeyDigest()
Serializable create() throws IgniteException
IgniteException
- If key creation failed.void encrypt(ByteBuffer data, Serializable key, ByteBuffer res)
data
- Data to encrypt.key
- Encryption key.res
- Destination buffer.void encryptNoPadding(ByteBuffer data, Serializable key, ByteBuffer res)
data
- Data to encrypt.key
- Encryption key.res
- Destination buffer.byte[] decrypt(byte[] data, Serializable key)
encrypt(ByteBuffer, Serializable, ByteBuffer)
data
- Data to decrypt.key
- Encryption key.void decryptNoPadding(ByteBuffer data, Serializable key, ByteBuffer res)
encryptNoPadding(ByteBuffer, Serializable, ByteBuffer)
data
- Data to decrypt.key
- Encryption key.byte[] encryptKey(Serializable key)
key
- Key to encrypt.Serializable decryptKey(byte[] key)
key
- Key to decrypt.int encryptedSize(int dataSize)
dataSize
- Size of plain data in bytes.int encryptedSizeNoPadding(int dataSize)
dataSize
- Size of plain data in bytes.int blockSize()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019