Class AuthenticatedDataTypeAdapterFactory

  • All Implemented Interfaces:
    com.google.gson.TypeAdapterFactory

    public class AuthenticatedDataTypeAdapterFactory
    extends Object
    implements com.google.gson.TypeAdapterFactory
    Gson TypeAdapterFactory for AuthenticatedData.

    Handles polymorphic deserialization of the keyTransportOrKEK list by inspecting each element's fields: items containing KEKIdentifier are deserialized as KEK, all others as KeyTransport. Serialization is delegated to Gson's default behavior.

    • Constructor Detail

      • AuthenticatedDataTypeAdapterFactory

        public AuthenticatedDataTypeAdapterFactory()
    • Method Detail

      • create

        public <T> com.google.gson.TypeAdapter<T> create​(com.google.gson.Gson gson,
                                                         com.google.gson.reflect.TypeToken<T> type)
        Specified by:
        create in interface com.google.gson.TypeAdapterFactory