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