Class EncryptionContextSerializer


  • public class EncryptionContextSerializer
    extends Object
    This class provides methods that serialize and deserialize the encryption context provided as a map containing key-value pairs comprised of strings.
    • Method Detail

      • serialize

        public static byte[] serialize​(Map<String,​String> encryptionContext)
        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

        public static Map<String,​String> deserialize​(byte[] b)
        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.