UaPkiProviderOpenSSL Class Reference
[UA Base Library Classes]

Wrapper classs for a OpenSSL 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>

Collaboration diagram for UaPkiProviderOpenSSL:

List of all members.


Public Member Functions

 UaPkiProviderOpenSSL (UaString &sCertificateLocation, UaString &sCertificateRevocationListLocation, UaString &sCertificateTrustListLocation)
 UaPkiProviderOpenSSL (UaPkiProviderOpenSSL *pOther)
 ~UaPkiProviderOpenSSL ()
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 OpenSSL 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

UaPkiProviderOpenSSL::UaPkiProviderOpenSSL ( UaString sCertificateLocation,
UaString sCertificateRevocationListLocation,
UaString sCertificateTrustListLocation 
)

construction

Parameters:
sCertificateLocation the location of the certificates.
sCertificateRevocationListLocation the loc<ation of the revoced certificates.
sCertificateTrustListLocation all trusted certificates.

UaPkiProviderOpenSSL::UaPkiProviderOpenSSL ( UaPkiProviderOpenSSL pOther  ) 

construction

Parameters:
pOther Pointer to native UaPkiProviderOpenSSL structure.

UaPkiProviderOpenSSL::~UaPkiProviderOpenSSL (  ) 

destruction


Member Function Documentation

UaStatus UaPkiProviderOpenSSL::openCertificateStore (  ) 

Attempts to open the certificate store.

Returns:
Error code.

UaStatus UaPkiProviderOpenSSL::closeCertificateStore (  ) 

Close the certificate store.

Returns:
Error code.

UaStatus UaPkiProviderOpenSSL::loadCertificate ( UaString sCertificateName,
UaByteString certificate 
)

Load a certificate from the certificate store.

Parameters:
sCertificateName The passed in name of the certificate.
certificate The passed in certificate.
Returns:
Error code.

Get server certificate

UaStatus UaPkiProviderOpenSSL::loadPrivateKey ( UaString sPrivateKeyName,
OpcUa_P_FileFormat  fileFormat,
UaString sPassword,
UaByteString privateKey 
)

Load a private key from the certificate store.

Parameters:
sPrivateKeyName the name of the private key.
fileFormat the actual used file format.
sPassword the password string.
privateKey the private key.
Returns:
Error code.

Get server certificate


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