Package net.dona.doip.util

# Class GsonUtility.PrivateKeyTypeHierarchyAdapter

java.lang.Object
net.dona.doip.util.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
  Constructor
  Description
  `PrivateKeyTypeHierarchyAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PrivateKey`
  `deserialize(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)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 interface `com.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 interface `com.google.gson.JsonDeserializer<PrivateKey>`
    Throws:
      `com.google.gson.JsonParseException`