mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 12:16:53 +00:00
Add gRPC size annotations; allow non-empty UAK for unrestricted
This commit is contained in:
1 parent
c70674ed26
commit
1e2d27585a
3 files changed
+4
-5
No files matched your search
+2
-3
@@ -139,9 +139,8 @@ public class AccountAttributes {
|
||||
@Schema(hidden = true)
|
||||
public boolean isUnrestrictedUakValid() {
|
||||
|
||||
final boolean valid =
|
||||
(unrestrictedUnidentifiedAccess && (unidentifiedAccessKey == null || unidentifiedAccessKey.length == 0))
|
||||
|| (!unrestrictedUnidentifiedAccess && (unidentifiedAccessKey != null
|
||||
final boolean valid = unrestrictedUnidentifiedAccess ||
|
||||
(!unrestrictedUnidentifiedAccess && (unidentifiedAccessKey != null
|
||||
&& unidentifiedAccessKey.length == 16));
|
||||
|
||||
Metrics.counter(UAK_VALIDATION_COUNTER_NAME,
|
||||
|
||||
Reference in new issue
Block a user