Commit 4f1bcc5
authored
feat: adding encryption and serialization through input/output stream (#5734)
* feat: wip to add streamed snapshot encryption and serilization
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* feat: added apis to encrypt/decrypt and marshal/unmarshal with streams
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: copyright header
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: missing copyright header
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: fixed some comments
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: fixed test and adding suggestions
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: copyright header
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: wrong since in javadoc
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* feat: added suggestions
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: missing copyrights
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: copyrights check failure
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* feat: added suggestions
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: added charset to getBytes
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: test missing dependency
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: fixed javadoc for CryptoService class
* feat: improved json marshalling
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* fix: copyrights
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
* feat: updated payload to support streams only
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>
---------
Signed-off-by: SimoneFiorani <simone.fiorani@abinsula.com>1 parent 3bc9b89 commit 4f1bcc5
37 files changed
Lines changed: 1059 additions & 402 deletions
File tree
- .github
- kura
- org.eclipse.kura.api
- META-INF
- src/main/java/org/eclipse/kura
- crypto
- marshalling
- org.eclipse.kura.core.configuration
- META-INF
- src/main/java/org/eclipse/kura/core/configuration
- org.eclipse.kura.core.crypto
- META-INF
- src/main/java/org/eclipse/kura/core/crypto
- org.eclipse.kura.json.marshaller.unmarshaller.provider
- META-INF
- src/main/java/org/eclipse/kura/internal/json/marshaller/unmarshaller
- keystore
- message
- system
- wiregraph
- org.eclipse.kura.xml.marshaller.unmarshaller.provider
- META-INF
- src/main/java/org/eclipse/kura/internal/xml/marshaller/unmarshaller
- test
- org.eclipse.kura.cloudconnection.kapua.mqtt.provider.test/src/test/java/org/eclipse/kura/core/cloud
- org.eclipse.kura.core.configuration.test
- META-INF
- src/test
- java/org/eclipse/kura/core/configuration
- resources
- org.eclipse.kura.core.crypto.test
- META-INF
- src/main/java/org/eclipse/kura/core/crypto
- org.eclipse.kura.json.marshaller.unmarshaller.provider.test
- META-INF
- src/test/java/org/eclipse/kura/internal/json/marshaller/unmarshaller
- keystore/test
- message/test
- test
- org.eclipse.kura.xml.marshaller.unmarshaller.provider.test/src/test/java/org/eclipse/kura/internal/xml/marshaller/unmarshaller/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
46 | 72 | | |
47 | 73 | | |
48 | 74 | | |
| |||
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
37 | 51 | | |
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
39 | 55 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 43 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
24 | | - | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
261 | 264 | | |
262 | 265 | | |
263 | 266 | | |
264 | | - | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
959 | 962 | | |
960 | 963 | | |
961 | 964 | | |
962 | | - | |
| 965 | + | |
963 | 966 | | |
964 | 967 | | |
965 | 968 | | |
| |||
1006 | 1009 | | |
1007 | 1010 | | |
1008 | 1011 | | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1014 | 1018 | | |
1015 | 1019 | | |
1016 | | - | |
1017 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1018 | 1023 | | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | 1024 | | |
1023 | | - | |
1024 | | - | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1025 | 1028 | | |
1026 | 1029 | | |
| 1030 | + | |
1027 | 1031 | | |
1028 | 1032 | | |
1029 | 1033 | | |
1030 | 1034 | | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1031 | 1050 | | |
1032 | 1051 | | |
1033 | 1052 | | |
| |||
1309 | 1328 | | |
1310 | 1329 | | |
1311 | 1330 | | |
1312 | | - | |
| 1331 | + | |
1313 | 1332 | | |
1314 | | - | |
1315 | | - | |
| 1333 | + | |
| 1334 | + | |
1316 | 1335 | | |
1317 | 1336 | | |
1318 | 1337 | | |
1319 | 1338 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
1327 | 1339 | | |
1328 | 1340 | | |
1329 | 1341 | | |
1330 | | - | |
| 1342 | + | |
1331 | 1343 | | |
1332 | 1344 | | |
1333 | 1345 | | |
| |||
1647 | 1659 | | |
1648 | 1660 | | |
1649 | 1661 | | |
1650 | | - | |
| 1662 | + | |
1651 | 1663 | | |
1652 | | - | |
| 1664 | + | |
1653 | 1665 | | |
1654 | 1666 | | |
1655 | 1667 | | |
1656 | 1668 | | |
1657 | 1669 | | |
1658 | | - | |
| 1670 | + | |
1659 | 1671 | | |
1660 | | - | |
| 1672 | + | |
1661 | 1673 | | |
1662 | 1674 | | |
1663 | 1675 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments