open62541pp 0.17.0
C++ wrapper of open62541
|
#include <client.hpp>
Public Member Functions | |
ClientConfig () | |
ClientConfig (const ByteString &certificate, const ByteString &privateKey, Span< const ByteString > trustList, Span< const ByteString > revocationList={}) | |
ClientConfig (UA_ClientConfig &&native) | |
~ClientConfig () | |
ClientConfig (const ClientConfig &)=delete | |
ClientConfig (ClientConfig &&other) noexcept | |
ClientConfig & | operator= (const ClientConfig &)=delete |
ClientConfig & | operator= (ClientConfig &&other) noexcept |
void | setLogger (LogFunction func) |
void | setTimeout (uint32_t milliseconds) noexcept |
void | setUserIdentityToken (const AnonymousIdentityToken &token) |
void | setUserIdentityToken (const UserNameIdentityToken &token) |
void | setUserIdentityToken (const X509IdentityToken &token) |
void | setUserIdentityToken (const IssuedIdentityToken &token) |
void | setSecurityMode (MessageSecurityMode mode) noexcept |
![]() | |
constexpr | Wrapper () noexcept=default |
constexpr | Wrapper (const UA_ClientConfig &native) noexcept |
constexpr | Wrapper (UA_ClientConfig &&native) noexcept |
constexpr Wrapper & | operator= (const UA_ClientConfig &native) noexcept |
constexpr Wrapper & | operator= (UA_ClientConfig &&native) noexcept |
constexpr | operator UA_ClientConfig & () noexcept |
constexpr | operator const UA_ClientConfig & () const noexcept |
constexpr UA_ClientConfig * | operator-> () noexcept |
constexpr const UA_ClientConfig * | operator-> () const noexcept |
constexpr UA_ClientConfig * | handle () noexcept |
constexpr const UA_ClientConfig * | handle () const noexcept |
constexpr void | swap (Wrapper &other) noexcept |
constexpr void | swap (UA_ClientConfig &native) noexcept |
Additional Inherited Members | |
![]() | |
using | NativeType |
![]() | |
constexpr const UA_ClientConfig & | native () const noexcept |
constexpr UA_ClientConfig & | native () noexcept |
![]() | |
constexpr WrapperType * | asWrapper (NativeType *native) noexcept |
constexpr const WrapperType * | asWrapper (const NativeType *native) noexcept |
constexpr WrapperType & | asWrapper (NativeType &native) noexcept |
constexpr const WrapperType & | asWrapper (const NativeType &native) noexcept |
constexpr NativeType * | asNative (WrapperType *wrapper) noexcept |
constexpr const NativeType * | asNative (const WrapperType *wrapper) noexcept |
constexpr NativeType & | asNative (WrapperType &wrapper) noexcept |
constexpr const NativeType & | asNative (const WrapperType &wrapper) 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().