@Test void convert_deserialization_test() { String clientDataJson = "{\"challenge\":\"tk31UH1ETGGTPj33OhOMzw\",\"origin\":\"http: String clientDataBase64UrlString = Base64UrlUtil.encodeToString(clientDataJson.getBytes(StandardCharsets.UTF_8)); CollectedClientData collectedClientData = target.convert(clientDataBase64UrlString); assertAll( () -> assertThat(collectedClientData.getType()).isEqualTo(ClientDataType.GET), () -> assertThat(collectedClientData.getChallenge()).isEqualTo(new DefaultChallenge("tk31UH1ETGGTPj33OhOMzw")), () -> assertThat(collectedClientData.getOrigin()).isEqualTo(new Origin("http: ); }
public CollectedClientData convert(String base64UrlString) { if (base64UrlString == null) { return null; } byte[] bytes = Base64UrlUtil.decode(base64UrlString); return convert(bytes); }
CollectedClientDataConverter { public CollectedClientData convert(String base64UrlString) { if (base64UrlString == null) { return null; } byte[] bytes = Base64UrlUtil.decode(base64UrlString); return convert(bytes); } }
CollectedClientDataConverter { public CollectedClientData convert(String base64UrlString) { if (base64UrlString == null) { return null; } byte[] bytes = Base64UrlUtil.decode(base64UrlString); return convert(bytes); } CollectedClientDataConverter(ObjectConverter objectConverter); }
CollectedClientDataConverter { public CollectedClientData convert(String base64UrlString) { if (base64UrlString == null) { return null; } byte[] bytes = Base64UrlUtil.decode(base64UrlString); return convert(bytes); } CollectedClientDataConverter(ObjectConverter objectConverter); CollectedClientData convert(String base64UrlString); CollectedClientData convert(byte[] source); byte[] convertToBytes(CollectedClientData source); String convertToBase64UrlString(CollectedClientData source); }
CollectedClientDataConverter { public CollectedClientData convert(String base64UrlString) { if (base64UrlString == null) { return null; } byte[] bytes = Base64UrlUtil.decode(base64UrlString); return convert(bytes); } CollectedClientDataConverter(ObjectConverter objectConverter); CollectedClientData convert(String base64UrlString); CollectedClientData convert(byte[] source); byte[] convertToBytes(CollectedClientData source); String convertToBase64UrlString(CollectedClientData source);  }