-
- All Implemented Interfaces:
-
apptentive.com.android.encryption.Encryption
@RequiresApi(value = 23) public final class AESEncryption23 implements Encryption
-
-
Constructor Summary
Constructors Constructor Description AESEncryption23(EncryptionKey keyInfo)
-
Method Summary
Modifier and Type Method Description ByteArrayencrypt(ByteArray data)Encrypts an array of bytes and writes into the given OutputStream final ByteArrayencrypt(ByteArray data, Boolean includeIVLength)final ByteArrayencryptPayloadData(ByteArray data)ByteArraydecrypt(ByteArray data)Decrypts an array of bytes ByteArraydecrypt(InputStream inputStream)Decrypts an array of bytes final ByteArraydecrypt(InputStream inputStream, Boolean decodeIVLength)final ByteArraydecryptPayloadData(ByteArray data)-
-
Constructor Detail
-
AESEncryption23
AESEncryption23(EncryptionKey keyInfo)
-
-
Method Detail
-
encrypt
ByteArray encrypt(ByteArray data)
Encrypts an array of bytes and writes into the given OutputStream
- Parameters:
data-raw data to encrypt
-
encryptPayloadData
final ByteArray encryptPayloadData(ByteArray data)
-
decrypt
ByteArray decrypt(ByteArray data)
Decrypts an array of bytes
- Parameters:
data-raw ByteArray data to decrypt
-
decrypt
ByteArray decrypt(InputStream inputStream)
Decrypts an array of bytes
- Parameters:
inputStream-inputStream with the data to decrypt
-
decrypt
final ByteArray decrypt(InputStream inputStream, Boolean decodeIVLength)
-
decryptPayloadData
final ByteArray decryptPayloadData(ByteArray data)
-
-
-
-