open62541pp 0.16.0
C++ wrapper of open62541
|
#include <client.hpp>
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< UA_ClientConfig > | |
using | NativeType |
Protected Member Functions inherited from opcua::Wrapper< UA_ClientConfig > | |
constexpr const UA_ClientConfig & | native () const noexcept |
constexpr UA_ClientConfig & | native () noexcept |
opcua::ClientConfig::ClientConfig | ( | ) |
opcua::ClientConfig::ClientConfig | ( | const ByteString & | certificate, |
const ByteString & | privateKey, | ||
Span< const ByteString > | trustList, | ||
Span< const ByteString > | revocationList = {} ) |
Create client config with encryption enabled (PKI).
Security policies:
certificate | X.509 v3 certificate in DER encoded format |
privateKey | Private key in PEM encoded format |
trustList | List of trusted certificates in DER encoded format |
revocationList | Certificate revocation lists (CRL) in DER encoded format |
|
explicit |
opcua::ClientConfig::~ClientConfig | ( | ) |
|
delete |
|
noexcept |
|
delete |
|
noexcept |
void opcua::ClientConfig::setLogger | ( | LogFunction | func | ) |
Set custom log function.
Does nothing if the passed function is empty or a nullptr.
Referenced by opcua::Client::setLogger().
|
noexcept |
Set response timeout in milliseconds.
Referenced by opcua::Client::setTimeout().
void opcua::ClientConfig::setUserIdentityToken | ( | const AnonymousIdentityToken & | token | ) |
Set anonymous identity token.
Referenced by opcua::Client::setUserIdentityToken().
void opcua::ClientConfig::setUserIdentityToken | ( | const UserNameIdentityToken & | token | ) |
Set username/password identity token.
void opcua::ClientConfig::setUserIdentityToken | ( | const X509IdentityToken & | token | ) |
Set X.509 identity token.
void opcua::ClientConfig::setUserIdentityToken | ( | const IssuedIdentityToken & | token | ) |
Set issued identity token.
|
noexcept |
Set message security mode.
Referenced by opcua::Client::setSecurityMode().