mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 12:36:53 +00:00
Add size annotations to AccountAttributes
This commit is contained in:
1 parent
610782b8c3
commit
db66d4ef18
2 files changed
+7
-1
No files matched your search
@@ -40,6 +40,7 @@ public class AccountAttributes {
|
||||
private byte[] name;
|
||||
|
||||
@JsonProperty
|
||||
@ExactlySize({0, 64})
|
||||
private String registrationLock;
|
||||
|
||||
@JsonProperty
|
||||
@@ -61,6 +62,7 @@ public class AccountAttributes {
|
||||
@JsonProperty
|
||||
@Nullable
|
||||
@JsonDeserialize(using = ByteArrayAdapter.Deserializing.class)
|
||||
@ExactlySize({0, 32})
|
||||
private byte[] recoveryPassword = null;
|
||||
|
||||
public AccountAttributes() {
|
||||
|
||||
Reference in new issue
Block a user