open62541pp 0.15.0
C++ wrapper of open62541
|
#include <accesscontrol_default.hpp>
Default access control.
This class implements the same logic as UA_AccessControl_default(). The log-in can be anonymous or username-password. A logged-in user has all access rights.
Definition at line 24 of file accesscontrol_default.hpp.
Public Member Functions | |
AccessControlDefault (bool allowAnonymous=true, std::vector< Login > logins={}) | |
Span< UserTokenPolicy > | getUserTokenPolicies () override |
StatusCode | activateSession (Session &session, const EndpointDescription &endpointDescription, const ByteString &secureChannelRemoteCertificate, const ExtensionObject &userIdentityToken) override |
void | closeSession (Session &session) override |
Bitmask< WriteMask > | getUserRightsMask (Session &session, const NodeId &nodeId) override |
Bitmask< AccessLevel > | getUserAccessLevel (Session &session, const NodeId &nodeId) override |
bool | getUserExecutable (Session &session, const NodeId &methodId) override |
bool | getUserExecutableOnObject (Session &session, const NodeId &methodId, const NodeId &objectId) override |
bool | allowAddNode (Session &session, const AddNodesItem &item) override |
bool | allowAddReference (Session &session, const AddReferencesItem &item) override |
bool | allowDeleteNode (Session &session, const DeleteNodesItem &item) override |
bool | allowDeleteReference (Session &session, const DeleteReferencesItem &item) override |
bool | allowBrowseNode (Session &session, const NodeId &nodeId) override |
bool | allowTransferSubscription (Session &oldSession, Session &newSession) override |
bool | allowHistoryUpdate (Session &session, const NodeId &nodeId, PerformUpdateType performInsertReplace, const DataValue &value) override |
bool | allowHistoryDelete (Session &session, const NodeId &nodeId, DateTime startTimestamp, DateTime endTimestamp, bool isDeleteModified) override |
Public Member Functions inherited from opcua::AccessControlBase | |
UA_AccessControl | create () override |
void | clear (UA_AccessControl &ac) noexcept override |
Public Member Functions inherited from opcua::PluginAdapter< UA_AccessControl > | |
PluginAdapter ()=default | |
PluginAdapter (const PluginAdapter &)=default | |
PluginAdapter (PluginAdapter &&) noexcept=default | |
virtual | ~PluginAdapter ()=default |
PluginAdapter & | operator= (const PluginAdapter &)=default |
PluginAdapter & | operator= (PluginAdapter &&) noexcept=default |
virtual void | clear (UA_AccessControl *&plugin) noexcept |
Additional Inherited Members | |
Public Types inherited from opcua::PluginAdapter< UA_AccessControl > | |
using | PluginType |
|
explicit |
|
overridevirtual |
Get available user token policies.
If the securityPolicyUri
is empty, the highest available security policy will be used to transfer user tokens.
Implements opcua::AccessControlBase.
|
overridevirtual |
Authenticate a session.
The new session is rejected if a status code other than UA_STATUSCODE_GOOD
is returned.
Implements opcua::AccessControlBase.
|
overridevirtual |
Deauthenticate a session and cleanup session context.
Implements opcua::AccessControlBase.
|
overridevirtual |
Access control for all nodes.
Implements opcua::AccessControlBase.
|
overridevirtual |
Additional access control for variable nodes.
Implements opcua::AccessControlBase.
|
overridevirtual |
Additional access control for method nodes.
Implements opcua::AccessControlBase.
|
overridevirtual |
Additional access control for calling a method node in the context of a specific object.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow adding a node.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow adding a reference.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow deleting a node.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow deleting a reference.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow browsing a node.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow transfer of a subscription to another session.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow insert, replace, update of historical data.
Implements opcua::AccessControlBase.
|
overridevirtual |
Allow delete of historical data.
Implements opcua::AccessControlBase.