mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Code cleanup: remove unnecessary annotations, moved some API constants.
This commit is contained in:
13
briar-api/src/net/sf/briar/api/AuthorConstants.java
Normal file
13
briar-api/src/net/sf/briar/api/AuthorConstants.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package net.sf.briar.api;
|
||||
|
||||
public interface AuthorConstants {
|
||||
|
||||
/** The maximum length of an author's name in UTF-8 bytes. */
|
||||
int MAX_AUTHOR_NAME_LENGTH = 50;
|
||||
|
||||
/** The maximum length of a public key in bytes. */
|
||||
int MAX_PUBLIC_KEY_LENGTH = 97;
|
||||
|
||||
/** The maximum length of a signature in bytes. */
|
||||
int MAX_SIGNATURE_LENGTH = 104;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.sf.briar.api;
|
||||
|
||||
public interface TransportPropertyConstants {
|
||||
|
||||
/** The maximum number of properties per transport. */
|
||||
int MAX_PROPERTIES_PER_TRANSPORT = 100;
|
||||
|
||||
/** The maximum length of a property's key or value in UTF-8 bytes. */
|
||||
int MAX_PROPERTY_LENGTH = 100;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package net.sf.briar.api.plugins;
|
||||
package net.sf.briar.api.invitation;
|
||||
|
||||
public interface InvitationConstants {
|
||||
|
||||
@@ -14,21 +14,9 @@ public interface MessagingConstants {
|
||||
/** The maximum number of groups a user may subscribe to. */
|
||||
int MAX_SUBSCRIPTIONS = 3000;
|
||||
|
||||
/** The maximum number of properties per transport. */
|
||||
int MAX_PROPERTIES_PER_TRANSPORT = 100;
|
||||
|
||||
/** The maximum length of a property's key or value in UTF-8 bytes. */
|
||||
int MAX_PROPERTY_LENGTH = 100;
|
||||
|
||||
/** The maximum length of a group's name in UTF-8 bytes. */
|
||||
int MAX_GROUP_NAME_LENGTH = 50;
|
||||
|
||||
/** The maximum length of a public key in bytes. */
|
||||
int MAX_PUBLIC_KEY_LENGTH = 97;
|
||||
|
||||
/** The maximum length of an author's name in UTF-8 bytes. */
|
||||
int MAX_AUTHOR_NAME_LENGTH = 50;
|
||||
|
||||
/**
|
||||
* The maximum length of a message body in bytes. To allow for future
|
||||
* changes in the protocol, this is smaller than the maximum packet length
|
||||
@@ -42,9 +30,6 @@ public interface MessagingConstants {
|
||||
/** The maximum length of a message's subject line in UTF-8 bytes. */
|
||||
int MAX_SUBJECT_LENGTH = 100;
|
||||
|
||||
/** The maximum length of a signature in bytes. */
|
||||
int MAX_SIGNATURE_LENGTH = 120;
|
||||
|
||||
/** The length of a message's random salt in bytes. */
|
||||
int SALT_LENGTH = 8;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user