C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

Wrapper class for a PKI provider. More...

#include <uapkiprovider.h>

Inherited by UaPkiProviderNoSecurity, UaPkiProviderOpenSSL, and UaPkiProviderWindowsStore.

Public Member Functions

 UaPkiProvider (UaPkiProvider *pOther)
 Creates a UaPkiProvider object initialzed with another UaPkiProvider object. More...
 
virtual ~UaPkiProvider ()
 destruction
 
UaStatus openCertificateStore ()
 Attempts to open the certificate store. More...
 
UaStatus closeCertificateStore ()
 Close the certificate store. More...
 
UaStatus loadCertificate (UaString &sCertificateName, UaByteString &certificate)
 Load a certificate from the certificate store. More...
 
UaStatus loadPrivateKey (const UaString &sPrivateKeyName, OpcUa_P_Crypto_Encoding fileFormat, const UaString &sPassword, OpcUa_Key *pKey)
 Load a private key from the certificate store. More...
 
UaStatus splitCertificateChain (const UaByteString &certificateChain, UaByteStringArray &chainEntries)
 

Detailed Description

Wrapper class for a PKI provider.

The core library implements the basic cryptographic functions and provides various utility functions. It is not possible to create shallow copies of this Class. It is not possible to use the default constructor.

Constructor & Destructor Documentation

UaPkiProvider::UaPkiProvider ( UaPkiProvider pOther)

Creates a UaPkiProvider object initialzed with another UaPkiProvider object.

Parameters
pOtherPointer to another UaPkiProvider object.

Member Function Documentation

UaStatus UaPkiProvider::closeCertificateStore ( )

Close the certificate store.

Returns
Error code.
UaStatus UaPkiProvider::loadCertificate ( UaString sCertificateName,
UaByteString certificate 
)

Load a certificate from the certificate store.

Parameters
sCertificateNameThe passed in name of the certificate.
certificateThe passed in certificate.
Returns
Error code.

Get server certificate

UaStatus UaPkiProvider::loadPrivateKey ( const UaString sPrivateKeyName,
OpcUa_P_Crypto_Encoding  fileFormat,
const UaString sPassword,
OpcUa_Key *  pKey 
)

Load a private key from the certificate store.

Parameters
sPrivateKeyNamethe name of the private key.
fileFormatthe actual used file format.
sPasswordthe password string.
privateKeythe private key.
Returns
Error code.

Get server certificate

UaStatus UaPkiProvider::openCertificateStore ( )

Attempts to open the certificate store.

Returns
Error code.
UaStatus UaPkiProvider::splitCertificateChain ( const UaByteString certificateChain,
UaByteStringArray chainEntries 
)

Get server certificate


The documentation for this class was generated from the following files: