Wrapper classs for a PKI provider. The core library implements the basic cryptographic functions and provides various utility functions. It is not possible to create plane copies of this Class. It is not possible to use the default constructor. More...
#include <uapkiprovider.h>
Public Member Functions | |
UaPkiProvider (UaPkiProvider *pOther) | |
virtual | ~UaPkiProvider () |
UaStatus | openCertificateStore () |
UaStatus | closeCertificateStore () |
UaStatus | loadCertificate (UaString &sCertificateName, UaByteString &certificate) |
UaStatus | loadPrivateKey (UaString &sPrivateKeyName, OpcUa_P_FileFormat fileFormat, UaString &sPassword, UaByteString &privateKey) |
Wrapper classs for a PKI provider. The core library implements the basic cryptographic functions and provides various utility functions. It is not possible to create plane copies of this Class. It is not possible to use the default constructor.
UaPkiProvider::UaPkiProvider | ( | UaPkiProvider * | pOther ) |
construction
pOther | Pointer to native UaPkiProvider structure. |
UaPkiProvider::~UaPkiProvider | ( | ) | [virtual] |
destruction
UaStatus UaPkiProvider::closeCertificateStore | ( | ) |
Close the certificate store.
UaStatus UaPkiProvider::loadCertificate | ( | UaString & | sCertificateName, |
UaByteString & | certificate | ||
) |
Load a certificate from the certificate store.
sCertificateName | The passed in name of the certificate. |
certificate | The passed in certificate. |
Get server certificate
UaStatus UaPkiProvider::loadPrivateKey | ( | UaString & | sPrivateKeyName, |
OpcUa_P_FileFormat | fileFormat, | ||
UaString & | sPassword, | ||
UaByteString & | privateKey | ||
) |
Load a private key from the certificate store.
sPrivateKeyName | the name of the private key. |
fileFormat | the actual used file format. |
sPassword | the password string. |
privateKey | the private key. |
Get server certificate
UaStatus UaPkiProvider::openCertificateStore | ( | ) |
Attempts to open the certificate store.