Class EncryptionContextSerializer
java.lang.Object
com.amazonaws.encryptionsdk.internal.EncryptionContextSerializer
This class provides methods that serialize and deserialize the encryption context provided as a
map containing key-value pairs comprised of strings.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(byte[] b)
Deserialize the provided byte array into a map containing key-value pairs comprised of strings.static byte[]
Serialize the encryption context provided as a map containing key-value pairs comprised of strings into a byte array.
-
Method Details
-
serialize
Serialize the encryption context provided as a map containing key-value pairs comprised of strings into a byte array.- Parameters:
encryptionContext
- the map containing the encryption context to serialize.- Returns:
- serialized bytes of the encryption context.
-
deserialize
Deserialize the provided byte array into a map containing key-value pairs comprised of strings.- Parameters:
b
- the bytes to deserialize into a map representing the encryption context.- Returns:
- the map containing key-value pairs comprised of strings.
-