Package com.adyen.terminal.serialization
Class AuthenticatedDataTypeAdapterFactory
- java.lang.Object
-
- com.adyen.terminal.serialization.AuthenticatedDataTypeAdapterFactory
-
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public class AuthenticatedDataTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
GsonTypeAdapterFactoryforAuthenticatedData.Handles polymorphic deserialization of the
keyTransportOrKEKlist by inspecting each element's fields: items containingKEKIdentifierare deserialized asKEK, all others asKeyTransport. Serialization is delegated to Gson's default behavior.
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedDataTypeAdapterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> com.google.gson.TypeAdapter<T>create(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> type)
-