Class EncryptionUtil
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.file.EncryptionUtil
-
public class EncryptionUtil extends Object
Encryption utililty class.
-
-
Constructor Summary
Constructors Constructor Description EncryptionUtil(EncryptionSpi spi, int pageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecrypt(ByteBuffer encrypted, ByteBuffer destBuf, GroupKey grpKey)voidencrypt(ByteBuffer srcBuf, ByteBuffer res, GroupKey grpKey)
-
-
-
Constructor Detail
-
EncryptionUtil
public EncryptionUtil(EncryptionSpi spi, int pageSize)
- Parameters:
spi- Spi.pageSize- Page size.
-
-
Method Detail
-
encrypt
public void encrypt(ByteBuffer srcBuf, ByteBuffer res, GroupKey grpKey)
- Parameters:
srcBuf- Source buffer.res- Destination buffer.grpKey- Encryption key.
-
decrypt
public void decrypt(ByteBuffer encrypted, ByteBuffer destBuf, GroupKey grpKey) throws IOException
- Parameters:
encrypted- Encrypted buffer.destBuf- Destination buffer.- Throws:
IOException
-
-