UaPkiProvider Class Reference
[UA Base Library Classes]

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>

Inheritance diagram for UaPkiProvider:
Collaboration diagram for UaPkiProvider:

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

UaPkiProvider::UaPkiProvider ( UaPkiProvider pOther )

construction

Parameters:
pOtherPointer to native UaPkiProvider structure.
UaPkiProvider::~UaPkiProvider (  ) [virtual]

destruction


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 ( UaString sPrivateKeyName,
OpcUa_P_FileFormat  fileFormat,
UaString sPassword,
UaByteString privateKey 
)

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.

The documentation for this class was generated from the following files:
  • /home/buildbot/work/uasdkcpp/src/uabase/uabasecpp/uapkiprovider.h
  • /home/buildbot/work/uasdkcpp/src/uabase/uabasecpp/uapkiprovider.cpp