@@ -16152,21 +16152,26 @@ public String toString() {
16152
16152
public static class TlsCertificateManagementClusterTLSCertStruct {
16153
16153
public Integer caid;
16154
16154
public Optional<byte[]> certificate;
16155
+ public Integer fabricIndex;
16155
16156
private static final long CAID_ID = 0L;
16156
16157
private static final long CERTIFICATE_ID = 1L;
16158
+ private static final long FABRIC_INDEX_ID = 254L;
16157
16159
16158
16160
public TlsCertificateManagementClusterTLSCertStruct(
16159
16161
Integer caid,
16160
- Optional<byte[]> certificate
16162
+ Optional<byte[]> certificate,
16163
+ Integer fabricIndex
16161
16164
) {
16162
16165
this.caid = caid;
16163
16166
this.certificate = certificate;
16167
+ this.fabricIndex = fabricIndex;
16164
16168
}
16165
16169
16166
16170
public StructType encodeTlv() {
16167
16171
ArrayList<StructElement> values = new ArrayList<>();
16168
16172
values.add(new StructElement(CAID_ID, new UIntType(caid)));
16169
16173
values.add(new StructElement(CERTIFICATE_ID, certificate.<BaseTLVType>map((nonOptionalcertificate) -> new ByteArrayType(nonOptionalcertificate)).orElse(new EmptyType())));
16174
+ values.add(new StructElement(FABRIC_INDEX_ID, new UIntType(fabricIndex)));
16170
16175
16171
16176
return new StructType(values);
16172
16177
}
@@ -16177,6 +16182,7 @@ public static TlsCertificateManagementClusterTLSCertStruct decodeTlv(BaseTLVType
16177
16182
}
16178
16183
Integer caid = null;
16179
16184
Optional<byte[]> certificate = Optional.empty();
16185
+ Integer fabricIndex = null;
16180
16186
for (StructElement element: ((StructType)tlvValue).value()) {
16181
16187
if (element.contextTagNum() == CAID_ID) {
16182
16188
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
@@ -16188,11 +16194,17 @@ public static TlsCertificateManagementClusterTLSCertStruct decodeTlv(BaseTLVType
16188
16194
ByteArrayType castingValue = element.value(ByteArrayType.class);
16189
16195
certificate = Optional.of(castingValue.value(byte[].class));
16190
16196
}
16197
+ } else if (element.contextTagNum() == FABRIC_INDEX_ID) {
16198
+ if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
16199
+ UIntType castingValue = element.value(UIntType.class);
16200
+ fabricIndex = castingValue.value(Integer.class);
16201
+ }
16191
16202
}
16192
16203
}
16193
16204
return new TlsCertificateManagementClusterTLSCertStruct(
16194
16205
caid,
16195
- certificate
16206
+ certificate,
16207
+ fabricIndex
16196
16208
);
16197
16209
}
16198
16210
@@ -16206,6 +16218,9 @@ public String toString() {
16206
16218
output.append("\tcertificate: ");
16207
16219
output.append(certificate.isPresent() ? Arrays.toString(certificate.get()) : "");
16208
16220
output.append("\n");
16221
+ output.append("\tfabricIndex: ");
16222
+ output.append(fabricIndex);
16223
+ output.append("\n");
16209
16224
output.append("}\n");
16210
16225
return output.toString();
16211
16226
}
@@ -16214,25 +16229,30 @@ public static class TlsCertificateManagementClusterTLSClientCertificateDetailStr
16214
16229
public Integer ccdid;
16215
16230
public Optional<byte[]> clientCertificate;
16216
16231
public Optional<ArrayList<byte[]>> intermediateCertificates;
16232
+ public Integer fabricIndex;
16217
16233
private static final long CCDID_ID = 0L;
16218
16234
private static final long CLIENT_CERTIFICATE_ID = 1L;
16219
16235
private static final long INTERMEDIATE_CERTIFICATES_ID = 2L;
16236
+ private static final long FABRIC_INDEX_ID = 254L;
16220
16237
16221
16238
public TlsCertificateManagementClusterTLSClientCertificateDetailStruct(
16222
16239
Integer ccdid,
16223
16240
Optional<byte[]> clientCertificate,
16224
- Optional<ArrayList<byte[]>> intermediateCertificates
16241
+ Optional<ArrayList<byte[]>> intermediateCertificates,
16242
+ Integer fabricIndex
16225
16243
) {
16226
16244
this.ccdid = ccdid;
16227
16245
this.clientCertificate = clientCertificate;
16228
16246
this.intermediateCertificates = intermediateCertificates;
16247
+ this.fabricIndex = fabricIndex;
16229
16248
}
16230
16249
16231
16250
public StructType encodeTlv() {
16232
16251
ArrayList<StructElement> values = new ArrayList<>();
16233
16252
values.add(new StructElement(CCDID_ID, new UIntType(ccdid)));
16234
16253
values.add(new StructElement(CLIENT_CERTIFICATE_ID, clientCertificate.<BaseTLVType>map((nonOptionalclientCertificate) -> new ByteArrayType(nonOptionalclientCertificate)).orElse(new EmptyType())));
16235
16254
values.add(new StructElement(INTERMEDIATE_CERTIFICATES_ID, intermediateCertificates.<BaseTLVType>map((nonOptionalintermediateCertificates) -> ArrayType.generateArrayType(nonOptionalintermediateCertificates, (elementnonOptionalintermediateCertificates) -> new ByteArrayType(elementnonOptionalintermediateCertificates))).orElse(new EmptyType())));
16255
+ values.add(new StructElement(FABRIC_INDEX_ID, new UIntType(fabricIndex)));
16236
16256
16237
16257
return new StructType(values);
16238
16258
}
@@ -16244,6 +16264,7 @@ public static TlsCertificateManagementClusterTLSClientCertificateDetailStruct de
16244
16264
Integer ccdid = null;
16245
16265
Optional<byte[]> clientCertificate = Optional.empty();
16246
16266
Optional<ArrayList<byte[]>> intermediateCertificates = Optional.empty();
16267
+ Integer fabricIndex = null;
16247
16268
for (StructElement element: ((StructType)tlvValue).value()) {
16248
16269
if (element.contextTagNum() == CCDID_ID) {
16249
16270
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
@@ -16260,12 +16281,18 @@ public static TlsCertificateManagementClusterTLSClientCertificateDetailStruct de
16260
16281
ArrayType castingValue = element.value(ArrayType.class);
16261
16282
intermediateCertificates = Optional.of(castingValue.map((elementcastingValue) -> elementcastingValue.value(byte[].class)));
16262
16283
}
16284
+ } else if (element.contextTagNum() == FABRIC_INDEX_ID) {
16285
+ if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
16286
+ UIntType castingValue = element.value(UIntType.class);
16287
+ fabricIndex = castingValue.value(Integer.class);
16288
+ }
16263
16289
}
16264
16290
}
16265
16291
return new TlsCertificateManagementClusterTLSClientCertificateDetailStruct(
16266
16292
ccdid,
16267
16293
clientCertificate,
16268
- intermediateCertificates
16294
+ intermediateCertificates,
16295
+ fabricIndex
16269
16296
);
16270
16297
}
16271
16298
@@ -16282,6 +16309,9 @@ public String toString() {
16282
16309
output.append("\tintermediateCertificates: ");
16283
16310
output.append(intermediateCertificates);
16284
16311
output.append("\n");
16312
+ output.append("\tfabricIndex: ");
16313
+ output.append(fabricIndex);
16314
+ output.append("\n");
16285
16315
output.append("}\n");
16286
16316
return output.toString();
16287
16317
}
0 commit comments