#include <cta_ua_server.h>
Callback interface for the main OPC Server object. This callback interface needs to be implemented if the application wants to implement user authentication.
OpcServerCallback::OpcServerCallback |
( |
| ) |
|
|
inline |
virtual OpcServerCallback::~OpcServerCallback |
( |
| ) |
|
|
inlinevirtual |
virtual Session* OpcServerCallback::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 verfication.
- Paramètres
-
sessionID | Session Id created by the server application. |
authenticationToken | Secret session Id created by the server application. |
- Renvoie
- A pointer to the created session.
virtual UaServer* OpcServerCallback::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.
- Renvoie
- UaServer object or NULL if the SDK should use the default implementation.
virtual UaStatus OpcServerCallback::logonSessionUser |
( |
Session * |
pSession, |
|
|
UaUserIdentityToken * |
pUserIdentityToken |
|
) |
| |
|
pure virtual |
Validates the user identity token and sets the user for the session.
- Paramètres
-
pSession | Interface to the Session context for the method call |
pUserIdentityToken | Secret session Id created by the server application. |
- Renvoie
- Error code.
La documentation de cette classe a été générée à partir du fichier suivant :
- D:/travail/OPCUA/trunk/sources_cpp/server_CTA/genericServerLib/cta_ua/cta_ua_server.h