Class JsonSerialization
java.lang.Object
org.jboss.resteasy.jwt.JsonSerialization
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
static <T> T
fromBytes
(Class<T> type, byte[] bytes, ResteasyProviderFactory factory) static <T> T
fromString
(Class<T> type, String json) static <T> T
fromString
(Class<T> type, String json, ResteasyProviderFactory factory) static byte[]
toByteArray
(Object token, boolean indent) static byte[]
toByteArray
(Object token, ResteasyProviderFactory factory) static String
static String
toString
(Object token, ResteasyProviderFactory factory)
-
Constructor Details
-
JsonSerialization
public JsonSerialization()
-
-
Method Details
-
toByteArray
-
toByteArray
- Throws:
IOException
-
toString
- Throws:
Exception
-
toString
-
fromString
-
fromString
public static <T> T fromString(Class<T> type, String json, ResteasyProviderFactory factory) throws Exception - Throws:
Exception
-
fromBytes
- Throws:
IOException
-
fromBytes
public static <T> T fromBytes(Class<T> type, byte[] bytes, ResteasyProviderFactory factory) throws IOException - Throws:
IOException
-