Class AesCbcAdapter
java.lang.Object
com.gigaspaces.client.storage_adapters.PropertyStorageAdapter
com.gigaspaces.client.storage_adapters.AbstractAesAdapter
com.gigaspaces.client.storage_adapters.AesCbcAdapter
Adapter for encrypting properties using AES/CBC.
Based on https://proandroiddev.com/security-best-practices-symmetric-encryption-with-aes-in-java-and-android-part-2-b3b80e99ad36
- Since:
- 15.2
- Author:
- Niv Ingberg
-
Field Summary
Fields inherited from class AbstractAesAdapter
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractAesAdapter
cipher, decrypt, encrypt, fromSpace, generateInitializationVector, generateMac, generateSubKey, generateSubKey, getName, getOrCreateCipher, getOrCreateMac, getPassPhrase, getSecureRandom, getStorageClass, initEncryptionAlgorithm, initEncryptionKeyLength, initMacAlgorithm, initMacKeyLength, initSecureRandom, readArrayRemaining, readArrayWithByteLength, toParameterSpec, toSpace, writeArrayRemaining, writeArrayWithByteLengthMethods inherited from class PropertyStorageAdapter
base64Decode, base64Encode, deserialize, serialize, supportsEqualsMatching, supportsOrderedMatching, toBinaryWrapper, unwrapBinary, unzip, useBase64Wrapper, wrapBinary, zip
-
Constructor Details
-
AesCbcAdapter
public AesCbcAdapter()
-
-
Method Details
-
initIvLengthBytes
protected int initIvLengthBytes()Description copied from class:AbstractAesAdapterProvides the initialization vector length, in bytes.- Specified by:
initIvLengthBytesin classAbstractAesAdapter
-
initTransformation
Description copied from class:AbstractAesAdapterProvides the cipher transformation string.- Specified by:
initTransformationin classAbstractAesAdapter
-
initPadding
-
initMacEnabled
protected boolean initMacEnabled()- Specified by:
initMacEnabledin classAbstractAesAdapter
-