Package io.jans.fido2.service
Class DataMapperService
java.lang.Object
io.jans.fido2.service.DataMapperService
Conversions to/from JSON format and to/from CBOR format
- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.dataformat.cbor.CBORParsercborCreateParser(byte[] data) com.fasterxml.jackson.databind.JsonNodecborReadTree(byte[] content) byte[]cborWriteAsBytes(com.fasterxml.jackson.databind.JsonNode jsonNode) <T> TconvertValue(Object fromValue, Class<T> toValueType) com.fasterxml.jackson.databind.node.ArrayNodecom.fasterxml.jackson.databind.node.ObjectNodevoidinit()com.fasterxml.jackson.databind.JsonNodereadTree(byte[] content) com.fasterxml.jackson.databind.JsonNodereadTree(BufferedReader reader) com.fasterxml.jackson.databind.JsonNode<T> T<T> TreadValueString(String content, Class<T> clazz) writeValueAsString(Object value)
-
Constructor Details
-
DataMapperService
public DataMapperService()
-
-
Method Details
-
init
@PostConstruct public void init() -
readTree
- Throws:
IOException
-
readTree
- Throws:
IOException
-
readTree
- Throws:
IOException
-
readValue
- Throws:
IOException
-
createObjectNode
public com.fasterxml.jackson.databind.node.ObjectNode createObjectNode() -
createArrayNode
public com.fasterxml.jackson.databind.node.ArrayNode createArrayNode() -
cborReadTree
- Throws:
IOException
-
cborWriteAsBytes
- Throws:
IOException
-
cborCreateParser
public com.fasterxml.jackson.dataformat.cbor.CBORParser cborCreateParser(byte[] data) throws IOException - Throws:
IOException
-
convertValue
-
writeValueAsString
public String writeValueAsString(Object value) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
readValueString
public <T> T readValueString(String content, Class<T> clazz) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-