UA Server SDK C++ Bundle
1.4.2.275
|
Wrapper class for a PKI provider. More...
#include <uapkiprovider.h>
Inherited by UaPkiProviderNoSecurity, 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 (UaString &sPrivateKeyName, OpcUa_P_FileFormat fileFormat, UaString &sPassword, UaByteString &privateKey) |
Load a private key from the certificate store. More... | |
UaStatus | splitCertificateChain (const UaByteString &certificateChain, UaByteStringArray &chainEntries) |
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 plane copies of this Class. It is not possible to use the default constructor.
UaPkiProvider::UaPkiProvider | ( | UaPkiProvider * | pOther | ) |
Creates a UaPkiProvider object initialzed with another UaPkiProvider object.
pOther | Pointer to another UaPkiProvider object. |
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.
UaStatus UaPkiProvider::splitCertificateChain | ( | const UaByteString & | certificateChain, |
UaByteStringArray & | chainEntries | ||
) |
Get server certificate