forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMTRFabricInfo.h
101 lines (82 loc) · 3.06 KB
/
MTRFabricInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/**
* Copyright (c) 2023 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* An object that represents a fabric that the MTRDeviceControllerFactory knows
* about (and hence one that could have a controller created for it via
* createControllerOnExistingFabric).
*/
#import <Foundation/Foundation.h>
#import <Matter/MTRDefines.h>
NS_ASSUME_NONNULL_BEGIN
MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5))
@interface MTRFabricInfo : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
/**
* Root public key for the fabric.
*/
@property (readonly, nonatomic) NSData * rootPublicKey;
/**
* Vendor identifier for the fabric.
*/
@property (readonly, nonatomic) NSNumber * vendorID;
/**
* Fabric identifier (scoped to the root public key) for the fabric.
*/
@property (readonly, nonatomic) NSNumber * fabricID;
/**
* Node identifier for the given node on the fabric.
*/
@property (readonly, nonatomic) NSNumber * nodeID;
/**
* The string label for the fabric. May be empty.
*/
@property (readonly, nonatomic) NSString * label;
/**
* The root certificate for the fabric. This might be nil if a root
* certificate is not available (e.g. if this is information about some remote
* node that we don't have root certificate information for).
*/
@property (readonly, nonatomic, nullable) MTRCertificateDERBytes rootCertificate;
/**
* The same root certificate as rootCertificate, in Matter TLV format.
*/
@property (readonly, nonatomic, nullable) MTRCertificateTLVBytes rootCertificateTLV;
/**
* The intermediate certificate for the node. This might be nil if there is
* no intermediate certificate, or if the node is not on a fabric we have
* access to.
*/
@property (readonly, nonatomic, nullable) MTRCertificateDERBytes intermediateCertificate;
/**
* The same intermediate certificate as intermediateCertificate, in Matter TLV format.
*/
@property (readonly, nonatomic, nullable) MTRCertificateTLVBytes intermediateCertificateTLV;
/**
* The operational certificate for the node. This might be nil if
* the node is not on a fabric we have access to.
*/
@property (readonly, nonatomic, nullable) MTRCertificateDERBytes operationalCertificate;
/**
* The same operational certificate as operationalCertificate, in Matter TLV format.
*/
@property (readonly, nonatomic, nullable) MTRCertificateTLVBytes operationalCertificateTLV;
/**
* The fabric index which identifies the fabric on the node.
*/
@property (readonly, nonatomic) NSNumber * fabricIndex;
@end
NS_ASSUME_NONNULL_END