C++ Based OPC UA Client/Server/PubSub SDK
1.7.9.586
|
Wrapper class for the UA stack structure OpcUa_TrustListDataType. More...
#include <uatrustlistdatatype.h>
Public Member Functions | |
UaTrustListDataType () | |
Constructs an instance of the class UaTrustListDataType with empty default values. | |
UaTrustListDataType (const UaTrustListDataType &other) | |
Constructs an instance of the class UaTrustListDataType with values from another UaTrustListDataType object. More... | |
UaTrustListDataType (const OpcUa_TrustListDataType &other) | |
Constructs an instance of the class UaTrustListDataType with values from another OpcUa_TrustListDataType structure. More... | |
UaTrustListDataType (OpcUa_UInt32 specifiedLists, const UaByteStringArray &trustedCertificates, const UaByteStringArray &trustedCrls, const UaByteStringArray &issuerCertificates, const UaByteStringArray &issuerCrls) | |
Constructs an instance of the class UaTrustListDataType with values provided in the constructor. | |
UaTrustListDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaTrustListDataType initialized with value from a UaExtensionObject. More... | |
UaTrustListDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaTrustListDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaTrustListDataType () | |
Destroys the UaTrustListDataType object. | |
void | clear () |
Clear the data of the UaTrustListDataType. More... | |
bool | operator== (const UaTrustListDataType &other) const |
Compare two UaTrustListDataType for equality. More... | |
bool | operator!= (const UaTrustListDataType &other) const |
Compare two UaTrustListDataType for inequality. More... | |
UaTrustListDataType & | operator= (const UaTrustListDataType &other) |
Assignment operator. More... | |
OpcUa_TrustListDataType * | copy () const |
Copy UaTrustListDataType data to a newly allocated OpcUa_TrustListDataType. More... | |
void | copyTo (OpcUa_TrustListDataType *pDst) const |
Copy UaTrustListDataType data to an existing OpcUa_TrustListDataType structure. More... | |
void | attach (OpcUa_TrustListDataType *pValue) |
Attaches to an existing OpcUa_TrustListDataType structure. More... | |
OpcUa_TrustListDataType * | detach (OpcUa_TrustListDataType *pDst) |
Detaches the internal TrustListDataType structure from this class. More... | |
OpcUa_UInt32 | getSpecifiedLists () const |
A bit mask which indicates which lists contain information. More... | |
void | getTrustedCertificates (UaByteStringArray &trustedCertificates) const |
The list of Application and CA Certificates which are trusted. | |
void | getTrustedCrls (UaByteStringArray &trustedCrls) const |
The CRLs for the CA Certificates in the trustedCertificates list. | |
void | getIssuerCertificates (UaByteStringArray &issuerCertificates) const |
The list of CA Certificates which are necessary to validate Certificates. | |
void | getIssuerCrls (UaByteStringArray &issuerCrls) const |
The CRLs for the CA Certificates in the issuerCertificates list. | |
void | setSpecifiedLists (OpcUa_UInt32 specifiedLists) |
A bit mask which indicates which lists contain information. More... | |
void | setTrustedCertificates (const UaByteStringArray &trustedCertificates) |
The list of Application and CA Certificates which are trusted. | |
void | setTrustedCrls (const UaByteStringArray &trustedCrls) |
The CRLs for the CA Certificates in the trustedCertificates list. | |
void | setIssuerCertificates (const UaByteStringArray &issuerCertificates) |
The list of CA Certificates which are necessary to validate Certificates. | |
void | setIssuerCrls (const UaByteStringArray &issuerCrls) |
The CRLs for the CA Certificates in the issuerCertificates list. | |
Static Public Member Functions | |
static OpcUa_TrustListDataType * | clone (const OpcUa_TrustListDataType &source) |
Copy OpcUa_TrustListDataType data to a newly allocated OpcUa_TrustListDataType. More... | |
static void | cloneTo (const OpcUa_TrustListDataType &source, OpcUa_TrustListDataType ©) |
Copy OpcUa_TrustListDataType data to an existing OpcUa_TrustListDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_TrustListDataType.
This class encapsulates the native OpcUa_TrustListDataType structure and handles memory allocation and cleanup for you. UaTrustListDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared TrustListDataType it creates a copy for that (copy-on-write). So assigning another UaTrustListDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
A DataType which stores the trust list of a Server.
UaTrustListDataType::UaTrustListDataType | ( | const UaTrustListDataType & | other | ) |
Constructs an instance of the class UaTrustListDataType with values from another UaTrustListDataType object.
other | the other UaTrustListDataType used to initialize the object |
UaTrustListDataType::UaTrustListDataType | ( | const OpcUa_TrustListDataType & | other | ) |
Constructs an instance of the class UaTrustListDataType with values from another OpcUa_TrustListDataType structure.
other | the other OpcUa_TrustListDataType used to initialize the object |
UaTrustListDataType::UaTrustListDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaTrustListDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the TrustListDataType |
UaTrustListDataType::UaTrustListDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaTrustListDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the TrustListDataType |
void UaTrustListDataType::attach | ( | OpcUa_TrustListDataType * | pValue | ) |
Attaches to an existing OpcUa_TrustListDataType structure.
Don't manually free the attached structure afterwards, because UaTrustListDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaTrustListDataType::clear | ( | ) |
Clear the data of the UaTrustListDataType.
|
static |
Copy OpcUa_TrustListDataType data to a newly allocated OpcUa_TrustListDataType.
source | Source to clone. |
|
static |
Copy OpcUa_TrustListDataType data to an existing OpcUa_TrustListDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_TrustListDataType * UaTrustListDataType::copy | ( | ) | const |
Copy UaTrustListDataType data to a newly allocated OpcUa_TrustListDataType.
void UaTrustListDataType::copyTo | ( | OpcUa_TrustListDataType * | pDst | ) | const |
Copy UaTrustListDataType data to an existing OpcUa_TrustListDataType structure.
pDst | the destination of this copy operation. |
OpcUa_TrustListDataType * UaTrustListDataType::detach | ( | OpcUa_TrustListDataType * | pDst | ) |
Detaches the internal TrustListDataType structure from this class.
This way you take over the control of freeing the TrustListDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_TrustListDataType structure that receives the TrustListDataType data. |
OpcUa_UInt32 UaTrustListDataType::getSpecifiedLists | ( | ) | const |
A bit mask which indicates which lists contain information.
See OpcUa_TrustListMasks for allowed values.
bool UaTrustListDataType::operator!= | ( | const UaTrustListDataType & | other | ) | const |
Compare two UaTrustListDataType for inequality.
other | the UaTrustListDataType to compare with. |
UaTrustListDataType & UaTrustListDataType::operator= | ( | const UaTrustListDataType & | other | ) |
bool UaTrustListDataType::operator== | ( | const UaTrustListDataType & | other | ) | const |
Compare two UaTrustListDataType for equality.
other | the UaTrustListDataType to compare with. |
void UaTrustListDataType::setSpecifiedLists | ( | OpcUa_UInt32 | specifiedLists | ) |
A bit mask which indicates which lists contain information.
See OpcUa_TrustListMasks for allowed values.