@Test public void testParse() { String json = " {\n" + " \"application_type\": \"web\",\n" + " \"redirect_uris\":\n" + " [\"https: " \"https: " \"client_name\": \"My Example\",\n" + " \"client_name#ja-Jpan-JP\":\n" + " \"クライアント名\",\n" + " \"response_types\": [\"code\", \"token\"],\n" + " \"grant_types\": [\"authorization_code\", \"implicit\"],\n" + " \"logo_uri\": \"https: " \"subject_type\": \"pairwise\",\n" + " \"sector_identifier_uri\":\n" + " \"https: " \"token_endpoint_auth_method\": \"client_secret_basic\",\n" + " \"jwks_uri\": \"https: " \"userinfo_encrypted_response_alg\": \"RSA1_5\",\n" + " \"userinfo_encrypted_response_enc\": \"A128CBC-HS256\",\n" + " \"contacts\": [\"ve7jtb@example.org\", \"mary@example.org\"],\n" + " \"request_uris\":\n" + " [\"https: " }"; ClientDetailsEntity c = ClientDetailsEntityJsonProcessor.parse(json); assertEquals(ClientDetailsEntity.AppType.WEB, c.getApplicationType()); assertEquals(ImmutableSet.of("https: assertEquals("My Example", c.getClientName()); assertEquals(ImmutableSet.of("code", "token"), c.getResponseTypes()); assertEquals(ImmutableSet.of("authorization_code", "implicit"), c.getGrantTypes()); assertEquals("https: assertEquals(ClientDetailsEntity.SubjectType.PAIRWISE, c.getSubjectType()); assertEquals("https: assertEquals(ClientDetailsEntity.AuthMethod.SECRET_BASIC, c.getTokenEndpointAuthMethod()); assertEquals("https: assertEquals(JWEAlgorithm.RSA1_5, c.getUserInfoEncryptedResponseAlg()); assertEquals(EncryptionMethod.A128CBC_HS256, c.getUserInfoEncryptedResponseEnc()); assertEquals(ImmutableSet.of("ve7jtb@example.org", "mary@example.org"), c.getContacts()); assertEquals(ImmutableSet.of("https: }
public static ClientDetailsEntity parse(String jsonString) { JsonElement jsonEl = parser.parse(jsonString); return parse(jsonEl); }
ClientDetailsEntityJsonProcessor { public static ClientDetailsEntity parse(String jsonString) { JsonElement jsonEl = parser.parse(jsonString); return parse(jsonEl); } }
ClientDetailsEntityJsonProcessor { public static ClientDetailsEntity parse(String jsonString) { JsonElement jsonEl = parser.parse(jsonString); return parse(jsonEl); }  }
ClientDetailsEntityJsonProcessor { public static ClientDetailsEntity parse(String jsonString) { JsonElement jsonEl = parser.parse(jsonString); return parse(jsonEl); }  static ClientDetailsEntity parse(String jsonString); static ClientDetailsEntity parse(JsonElement jsonEl); static RegisteredClient parseRegistered(String jsonString); static RegisteredClient parseRegistered(JsonElement jsonEl); static JsonObject serialize(RegisteredClient c); }
ClientDetailsEntityJsonProcessor { public static ClientDetailsEntity parse(String jsonString) { JsonElement jsonEl = parser.parse(jsonString); return parse(jsonEl); }  static ClientDetailsEntity parse(String jsonString); static ClientDetailsEntity parse(JsonElement jsonEl); static RegisteredClient parseRegistered(String jsonString); static RegisteredClient parseRegistered(JsonElement jsonEl); static JsonObject serialize(RegisteredClient c);  }