|
3 | 3 | import hirs.structs.elements.Struct;
|
4 | 4 | import hirs.structs.elements.StructElementLength;
|
5 | 5 | import hirs.structs.elements.StructElements;
|
| 6 | +import lombok.Getter; |
6 | 7 |
|
7 | 8 | import java.util.Arrays;
|
8 | 9 |
|
|
16 | 17 | "deviceInfoReportLength", "deviceInfoReport"})
|
17 | 18 | public class IdentityRequestEnvelope implements Struct {
|
18 | 19 |
|
| 20 | + /** |
| 21 | + * the length of the identity request blob. |
| 22 | + */ |
| 23 | + @Getter |
19 | 24 | @StructElementLength(fieldName = "request")
|
20 | 25 | private int requestLength;
|
21 | 26 |
|
22 | 27 | private byte[] request;
|
23 | 28 |
|
| 29 | + /** |
| 30 | + * the length of the endorsementCredentialModulus blob. |
| 31 | + */ |
| 32 | + @Getter |
24 | 33 | @StructElementLength(fieldName = "endorsementCredentialModulus")
|
25 | 34 | private int endorsementCredentialModulusLength;
|
26 | 35 |
|
27 | 36 | private byte[] endorsementCredentialModulus;
|
28 | 37 |
|
| 38 | + /** |
| 39 | + * the length of the endorsementCredential blob. |
| 40 | + */ |
| 41 | + @Getter |
29 | 42 | @StructElementLength(fieldName = "endorsementCredential")
|
30 | 43 | private int endorsementCredentialLength;
|
31 | 44 |
|
32 | 45 | private byte[] endorsementCredential;
|
33 | 46 |
|
| 47 | + /** |
| 48 | + * the length of the device info report. |
| 49 | + */ |
| 50 | + @Getter |
34 | 51 | @StructElementLength(fieldName = "deviceInfoReport")
|
35 | 52 | private int deviceInfoReportLength;
|
36 | 53 |
|
37 | 54 | private byte[] deviceInfoReport;
|
38 | 55 |
|
39 |
| - /** |
40 |
| - * @return the length of the identity request blob. |
41 |
| - */ |
42 |
| - public int getRequestLength() { |
43 |
| - return requestLength; |
44 |
| - } |
45 |
| - |
46 | 56 | /**
|
47 | 57 | * @return the identity request.
|
48 | 58 | */
|
49 | 59 | public byte[] getRequest() {
|
50 | 60 | return Arrays.copyOf(request, request.length);
|
51 | 61 | }
|
52 | 62 |
|
53 |
| - /** |
54 |
| - * @return the length of the endorsementCredentialModulus blob |
55 |
| - */ |
56 |
| - public int getEndorsementCredentialModulusLength() { |
57 |
| - return endorsementCredentialModulusLength; |
58 |
| - } |
59 |
| - |
60 | 63 | /**
|
61 | 64 | * @return the endorsementCredentialModulus blob.
|
62 | 65 | */
|
63 | 66 | public byte[] getEndorsementCredentialModulus() {
|
64 | 67 | return Arrays.copyOf(endorsementCredentialModulus, endorsementCredentialModulus.length);
|
65 | 68 | }
|
66 | 69 |
|
67 |
| - /** |
68 |
| - * @return the length of the endorsementCredential blob |
69 |
| - */ |
70 |
| - public int getEndorsementCredentialLength() { |
71 |
| - return endorsementCredentialLength; |
72 |
| - } |
73 |
| - |
74 | 70 | /**
|
75 | 71 | * @return the endorsementCredential
|
76 | 72 | */
|
77 | 73 | public byte[] getEndorsementCredential() {
|
78 | 74 | return Arrays.copyOf(endorsementCredential, endorsementCredential.length);
|
79 | 75 | }
|
80 | 76 |
|
81 |
| - /** |
82 |
| - * @return the length of the device info report |
83 |
| - */ |
84 |
| - public int getDeviceInfoReportLength() { |
85 |
| - return deviceInfoReportLength; |
86 |
| - } |
87 |
| - |
88 | 77 | /**
|
89 | 78 | * @return the device info report
|
90 | 79 | */
|
|
0 commit comments