diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyDistinguishedKeyResponse.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyDistinguishedKeyResponse.java index 02dfec21a..2d254da2e 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyDistinguishedKeyResponse.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyDistinguishedKeyResponse.java @@ -16,5 +16,5 @@ public record KeyTransparencyDistinguishedKeyResponse( @JsonSerialize(using = ByteArrayAdapter.Serializing.class) @JsonDeserialize(using = ByteArrayAdapter.Deserializing.class) @Schema(description = "The serialized `DistinguishedResponse` encoded in standard un-padded base64") - byte[] distinguishedKeyResponse + byte[] serializedResponse ) {} diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyMonitorResponse.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyMonitorResponse.java index 74ac7fbbd..8dac8ee08 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyMonitorResponse.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/KeyTransparencyMonitorResponse.java @@ -16,6 +16,6 @@ public record KeyTransparencyMonitorResponse( @NotNull @JsonSerialize(using = ByteArrayAdapter.Serializing.class) @JsonDeserialize(using = ByteArrayAdapter.Deserializing.class) - @Schema(description = "The monitor response encoded in standard un-padded base64") - byte[] monitorResponse + @Schema(description = "The serialized `MonitorResponse` encoded in standard un-padded base64") + byte[] serializedResponse ) {} diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/controllers/KeyTransparencyControllerTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/controllers/KeyTransparencyControllerTest.java index f8d31fec7..ba8ef109a 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/controllers/KeyTransparencyControllerTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/controllers/KeyTransparencyControllerTest.java @@ -325,7 +325,7 @@ public class KeyTransparencyControllerTest { final KeyTransparencyMonitorResponse keyTransparencyMonitorResponse = response.readEntity( KeyTransparencyMonitorResponse.class); - assertNotNull(keyTransparencyMonitorResponse.monitorResponse()); + assertNotNull(keyTransparencyMonitorResponse.serializedResponse()); verify(keyTransparencyServiceClient, times(1)).monitor( any(), eq(3L), eq(4L), eq(KeyTransparencyController.KEY_TRANSPARENCY_RPC_TIMEOUT)); @@ -543,7 +543,7 @@ public class KeyTransparencyControllerTest { final KeyTransparencyDistinguishedKeyResponse distinguishedKeyResponse = response.readEntity( KeyTransparencyDistinguishedKeyResponse.class); - assertNotNull(distinguishedKeyResponse.distinguishedKeyResponse()); + assertNotNull(distinguishedKeyResponse.serializedResponse()); verify(keyTransparencyServiceClient, times(1)) .getDistinguishedKey(eq(Optional.ofNullable(lastTreeHeadSize)),