Class PublicKeyDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<T>
-
- com.syntifi.casper.sdk.jackson.deserializer.AbstractSerializedKeyTaggedHexDeserializer<PublicKey,AlgorithmTag>
-
- com.syntifi.casper.sdk.jackson.deserializer.PublicKeyDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class PublicKeyDeserializer extends AbstractSerializedKeyTaggedHexDeserializer<PublicKey,AlgorithmTag>
Customize the mapping of Casper's PublicKey- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description PublicKeyDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PublicKey
getInstanceOf()
protected void
loadKey(PublicKey key, byte[] bytes)
-
Methods inherited from class com.syntifi.casper.sdk.jackson.deserializer.AbstractSerializedKeyTaggedHexDeserializer
deserialize
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Method Detail
-
getInstanceOf
protected PublicKey getInstanceOf()
- Specified by:
getInstanceOf
in classAbstractSerializedKeyTaggedHexDeserializer<PublicKey,AlgorithmTag>
-
loadKey
protected void loadKey(PublicKey key, byte[] bytes) throws java.security.NoSuchAlgorithmException
- Specified by:
loadKey
in classAbstractSerializedKeyTaggedHexDeserializer<PublicKey,AlgorithmTag>
- Throws:
java.security.NoSuchAlgorithmException
-
-