Class CryptoKeySerializer
- java.lang.Object
-
- com.github.katenachain.serializer.adapter.CryptoKeySerializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<AbstractKey>,com.google.gson.JsonSerializer<AbstractKey>
public class CryptoKeySerializer extends Object implements com.google.gson.JsonSerializer<AbstractKey>, com.google.gson.JsonDeserializer<AbstractKey>
The type Crypto key serializer.
-
-
Constructor Summary
Constructors Constructor Description CryptoKeySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractKeydeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(AbstractKey abstractKey, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(AbstractKey abstractKey, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<AbstractKey>
-
deserialize
public AbstractKey deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<AbstractKey>- Throws:
com.google.gson.JsonParseException
-
-