mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 13:48:06 +01:00
Require some tree head sizes in key transparency search and monitor requests
This commit is contained in:
@@ -36,12 +36,10 @@ public record KeyTransparencyMonitorRequest(
|
||||
Optional<@Valid UsernameHashMonitor> usernameHash,
|
||||
|
||||
@Schema(description = "The tree head size to prove consistency against.")
|
||||
@NotNull
|
||||
Optional<@Positive Long> lastNonDistinguishedTreeHeadSize,
|
||||
@Positive long lastNonDistinguishedTreeHeadSize,
|
||||
|
||||
@Schema(description = "The distinguished tree head size to prove consistency against.")
|
||||
@NotNull
|
||||
Optional<@Positive Long> lastDistinguishedTreeHeadSize
|
||||
@Positive long lastDistinguishedTreeHeadSize
|
||||
) {
|
||||
|
||||
public record AciMonitor(
|
||||
|
||||
@@ -51,8 +51,9 @@ public record KeyTransparencySearchRequest(
|
||||
@Schema(description = "The non-distinguished tree head size to prove consistency against.")
|
||||
Optional<@Positive Long> lastTreeHeadSize,
|
||||
|
||||
@NotNull
|
||||
@Schema(description = "The distinguished tree head size to prove consistency against.")
|
||||
Optional<@Positive Long> distinguishedTreeHeadSize
|
||||
@Positive long distinguishedTreeHeadSize
|
||||
) {
|
||||
@AssertTrue
|
||||
public boolean isUnidentifiedAccessKeyProvidedWithE164() {
|
||||
|
||||
Reference in New Issue
Block a user