open62541pp 0.16.0
C++ wrapper of open62541
|
#include <server.hpp>
Server configuration.
Definition at line 38 of file server.hpp.
Public Member Functions | |
ServerConfig () | |
ServerConfig (uint16_t port, const ByteString &certificate={}) | |
ServerConfig (uint16_t port, const ByteString &certificate, const ByteString &privateKey, Span< const ByteString > trustList, Span< const ByteString > issuerList, Span< const ByteString > revocationList={}) | |
ServerConfig (UA_ServerConfig &&native) | |
~ServerConfig () | |
ServerConfig (const ServerConfig &)=delete | |
ServerConfig (ServerConfig &&other) noexcept | |
ServerConfig & | operator= (const ServerConfig &)=delete |
ServerConfig & | operator= (ServerConfig &&other) noexcept |
void | setLogger (LogFunction func) |
void | setBuildInfo (BuildInfo buildInfo) |
void | setApplicationUri (std::string_view uri) |
void | setProductUri (std::string_view uri) |
void | setApplicationName (std::string_view name) |
void | setAccessControl (AccessControlBase &accessControl) |
void | setAccessControl (std::unique_ptr< AccessControlBase > &&accessControl) |
Public Member Functions inherited from opcua::Wrapper< UA_ServerConfig > | |
constexpr | Wrapper ()=default |
constexpr | Wrapper (const UA_ServerConfig &native) |
constexpr | Wrapper (UA_ServerConfig &&native) noexcept |
constexpr | operator UA_ServerConfig & () noexcept |
constexpr | operator const UA_ServerConfig & () const noexcept |
constexpr UA_ServerConfig * | operator-> () noexcept |
constexpr const UA_ServerConfig * | operator-> () const noexcept |
constexpr UA_ServerConfig * | handle () noexcept |
constexpr const UA_ServerConfig * | handle () const noexcept |
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< UA_ServerConfig > | |
using | NativeType |
Protected Member Functions inherited from opcua::Wrapper< UA_ServerConfig > | |
constexpr const UA_ServerConfig & | native () const noexcept |
constexpr UA_ServerConfig & | native () noexcept |
opcua::ServerConfig::ServerConfig | ( | ) |
|
explicit |
Create server config with minimal configuration.
Security policies:
port | Port number |
certificate | Optional X.509 v3 certificate in DER encoded format |
opcua::ServerConfig::ServerConfig | ( | uint16_t | port, |
const ByteString & | certificate, | ||
const ByteString & | privateKey, | ||
Span< const ByteString > | trustList, | ||
Span< const ByteString > | issuerList, | ||
Span< const ByteString > | revocationList = {} ) |
Create server config with encryption enabled (PKI).
Security policies:
port | Port number |
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 |
issuerList | List of issuer certificates (i.e. CAs) in DER encoded format |
revocationList | Certificate revocation lists (CRL) in DER encoded format |
|
explicit |
opcua::ServerConfig::~ServerConfig | ( | ) |
|
delete |
|
noexcept |
|
delete |
|
noexcept |
void opcua::ServerConfig::setLogger | ( | LogFunction | func | ) |
Referenced by opcua::Server::setLogger().
void opcua::ServerConfig::setBuildInfo | ( | BuildInfo | buildInfo | ) |
void opcua::ServerConfig::setApplicationUri | ( | std::string_view | uri | ) |
Set application URI, default: urn:open62541.server.application
.
Referenced by opcua::Server::setApplicationUri().
void opcua::ServerConfig::setProductUri | ( | std::string_view | uri | ) |
Set product URI, default: http://open62541.org
.
Referenced by opcua::Server::setProductUri().
void opcua::ServerConfig::setApplicationName | ( | std::string_view | name | ) |
Set application name, default: open62541-based OPC UA Application
.
Referenced by opcua::Server::setApplicationName().
void opcua::ServerConfig::setAccessControl | ( | AccessControlBase & | accessControl | ) |
Set custom access control.
Referenced by opcua::Server::setAccessControl(), and opcua::Server::setAccessControl().
void opcua::ServerConfig::setAccessControl | ( | std::unique_ptr< AccessControlBase > && | accessControl | ) |
Set custom access control (transfer ownership to Server).