public static <T> T fromString(Class<T> type, String json, ResteasyProviderFactory factory) throws Exception { byte[] bytes = json.getBytes(StandardCharsets.UTF_8); return fromBytes(type, bytes, factory); }
public static <T> T fromString(Class<T> type, String json) throws Exception { byte[] bytes = json.getBytes(StandardCharsets.UTF_8); return fromBytes(type, bytes); }
public static <T> T fromBytes(Class<T> type, byte[] bytes) throws IOException { ResteasyProviderFactory factory = new ResteasyProviderFactoryImpl(); factory.register(ResteasyJackson2Provider.class); factory.register(JWTContextResolver.class); return fromBytes(type, bytes, factory); }
public static <T> T fromString(Class<T> type, String json, ResteasyProviderFactory factory) throws Exception { byte[] bytes = json.getBytes(StandardCharsets.UTF_8); return fromBytes(type, bytes, factory); }
public static <T> T fromString(Class<T> type, String json) throws Exception { byte[] bytes = json.getBytes(StandardCharsets.UTF_8); return fromBytes(type, bytes); }
public static <T> T fromBytes(Class<T> type, byte[] bytes) throws IOException { ResteasyProviderFactory factory = new ResteasyProviderFactory(); factory.register(ResteasyJacksonProvider.class); factory.register(JWTContextResolver.class); return fromBytes(type, bytes, factory); }
try scope = JsonSerialization.fromBytes(SkeletonKeyScope.class, bytes);
try scope = JsonSerialization.fromBytes(SkeletonKeyScope.class, bytes);
try token = JsonSerialization.fromBytes(SkeletonKeyToken.class, input.getContent());