@@ -18,7 +18,7 @@ public final class Constants {
18
18
* Default length of the message identifier used to uniquely identify every
19
19
* ciphertext created by this library.
20
20
*/
21
- public final static int MESSAGE_ID_LEN = 16 ;
21
+ public static final int MESSAGE_ID_LEN = 16 ;
22
22
23
23
private Constants () {
24
24
// Prevent instantiation
@@ -27,39 +27,39 @@ private Constants() {
27
27
/**
28
28
* Marker for identifying the final frame.
29
29
*/
30
- public final static int ENDFRAME_SEQUENCE_NUMBER = ~0 ; // is 0xFFFFFFFF
30
+ public static final int ENDFRAME_SEQUENCE_NUMBER = ~0 ; // is 0xFFFFFFFF
31
31
32
32
/**
33
33
* The identifier for non-final frames in the framing content type. This value is used as part
34
34
* of the additional authenticated data (AAD) when encryption of content in a frame.
35
35
*/
36
- public final static String FRAME_STRING_ID = "AWSKMSEncryptionClient Frame" ;
36
+ public static final String FRAME_STRING_ID = "AWSKMSEncryptionClient Frame" ;
37
37
38
38
/**
39
39
* The identifier for the final frame in the framing content type. This value is used as part of
40
40
* the additional authenticated data (AAD) when encryption of content in a frame.
41
41
*/
42
- public final static String FINAL_FRAME_STRING_ID = "AWSKMSEncryptionClient Final Frame" ;
42
+ public static final String FINAL_FRAME_STRING_ID = "AWSKMSEncryptionClient Final Frame" ;
43
43
44
44
/**
45
45
* The identifier for the single block content type. This value is used as part of the
46
46
* additional authenticated data (AAD) when encryption of content in a single block.
47
47
*/
48
- public final static String SINGLE_BLOCK_STRING_ID = "AWSKMSEncryptionClient Single Block" ;
48
+ public static final String SINGLE_BLOCK_STRING_ID = "AWSKMSEncryptionClient Single Block" ;
49
49
50
50
/**
51
51
* Maximum length of the content that can be encrypted in GCM mode.
52
52
*/
53
- public final static long GCM_MAX_CONTENT_LEN = (1L << 36 ) - 32 ;
53
+ public static final long GCM_MAX_CONTENT_LEN = (1L << 36 ) - 32 ;
54
54
55
- public final static int MAX_NONCE_LENGTH = (1 << 8 ) - 1 ;
55
+ public static final int MAX_NONCE_LENGTH = (1 << 8 ) - 1 ;
56
56
57
57
/**
58
58
* Maximum value of an unsigned short.
59
59
*/
60
- public final static int UNSIGNED_SHORT_MAX_VAL = (1 << 16 ) - 1 ;
60
+ public static final int UNSIGNED_SHORT_MAX_VAL = (1 << 16 ) - 1 ;
61
61
62
- public final static long MAX_FRAME_NUMBER = (1L << 32 ) - 1 ;
62
+ public static final long MAX_FRAME_NUMBER = (1L << 32 ) - 1 ;
63
63
64
64
public static final String EC_PUBLIC_KEY_FIELD = "aws-crypto-public-key" ;
65
65
}
0 commit comments