UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UaServerApplicationCallback Class Referenceabstract

Callback interface for the Server application object. More...

#include <uaserverapplication.h>

Public Member Functions

 UaServerApplicationCallback ()
 Construction.
 
virtual ~UaServerApplicationCallback ()
 Destruction.
 
virtual SessioncreateSession (OpcUa_Int32 sessionID, const UaNodeId &authenticationToken)=0
 Creates a session object for the OPC server. More...
 
virtual UaStatus logonSessionUser (Session *pSession, UaUserIdentityToken *pUserIdentityToken, ServerConfig *pServerConfig)=0
 Validates the user identity token and sets the user for the session. More...
 
virtual void afterLoadConfiguration (ServerConfig *pServerConfig)
 Optional method used to inform the application that the configuration was loaded. More...
 
virtual UaServercreateUaServer ()
 Optional method used to create an application specific UaServer object used as main entry point for the UA communication. More...
 

Detailed Description

Callback interface for the Server application object.

This callback interface needs to be implemented if the application wants to implement user authentication.

Member Function Documentation

void UaServerApplicationCallback::afterLoadConfiguration ( ServerConfig pServerConfig)
virtual

Optional method used to inform the application that the configuration was loaded.

This callback allows the application to overwrite settings from configuration files before the server is started. This ensures that hard coded settings can not be changed by entering the configuration setting into the configuration file.

Parameters
pServerConfigThe server configuration interface
virtual Session* UaServerApplicationCallback::createSession ( OpcUa_Int32  sessionID,
const UaNodeId authenticationToken 
)
pure virtual

Creates a session object for the OPC server.

This callback allows the application to create its own session class derived from UaSession to store user specific information and to implement the user logon and user verification.

Parameters
sessionIDSession Id created by the server application.
authenticationTokenSecret session Id created by the server application.
Returns
A pointer to the created session.
virtual UaServer* UaServerApplicationCallback::createUaServer ( )
inlinevirtual

Optional method used to create an application specific UaServer object used as main entry point for the UA communication.

The SDK creates an instance of the UaServer class as default implementation.

Returns
UaServer object or NULL if the SDK should use the default implementation.
virtual UaStatus UaServerApplicationCallback::logonSessionUser ( Session pSession,
UaUserIdentityToken pUserIdentityToken,
ServerConfig pServerConfig 
)
pure virtual

Validates the user identity token and sets the user for the session.

Parameters
pSessionInterface to the Session context for the method call
pUserIdentityTokenSecret session Id created by the server application.
pServerConfigThe server configuration interface
Returns
Error code.

The documentation for this class was generated from the following files: