Package net.handle.hdllib
Class GsonUtility.PrivateKeyTypeHierarchyAdapter
java.lang.Object
net.handle.hdllib.GsonUtility.PrivateKeyTypeHierarchyAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<PrivateKey>
,com.google.gson.JsonSerializer<PrivateKey>
- Enclosing class:
GsonUtility
public static class GsonUtility.PrivateKeyTypeHierarchyAdapter
extends Object
implements com.google.gson.JsonSerializer<PrivateKey>, com.google.gson.JsonDeserializer<PrivateKey>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(PrivateKey key, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
PrivateKeyTypeHierarchyAdapter
public PrivateKeyTypeHierarchyAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(PrivateKey key, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<PrivateKey>
-
deserialize
public PrivateKey deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<PrivateKey>
- Throws:
com.google.gson.JsonParseException
-