open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
accesscontrol_default.h
Go to the documentation of this file.
1/** This work is licensed under a Creative Commons CCZero 1.0 Universal License.
2 * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
3 *
4 * Copyright 2016-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
5 * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
6 */
7
8#ifndef UA_ACCESSCONTROL_DEFAULT_H_
9#define UA_ACCESSCONTROL_DEFAULT_H_
10
12#include <open62541/server.h>
13
15
20
22 (const UA_String *userName, const UA_ByteString *password,
23 size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin
24 *usernamePasswordLogin, void **sessionContext, void *loginContext);
25
26/** Default access control. The log-in can be anonymous or username-password. A
27 * logged-in user has all access rights.
28 *
29 * The certificate verification plugin lifecycle is moved to the access control
30 * system. So it is cleared up eventually together with the AccessControl. */
31UA_EXPORT UA_StatusCode
33 UA_Boolean allowAnonymous,
35 const UA_ByteString *userTokenPolicyUri,
36 size_t usernamePasswordLoginSize,
37 const UA_UsernamePasswordLogin *usernamePasswordLogin);
38
39UA_EXPORT UA_StatusCode
41 UA_Boolean allowAnonymous,
43 const UA_ByteString *userTokenPolicyUri,
44 size_t usernamePasswordLoginSize,
45 const UA_UsernamePasswordLogin *usernamePasswordLogin,
47 void *loginContext);
48
50
51#endif /* UA_ACCESSCONTROL_DEFAULT_H_ */
UA_EXPORT UA_StatusCode UA_AccessControl_default(UA_ServerConfig *config, UA_Boolean allowAnonymous, UA_CertificateVerification *verifyX509, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin)
Default access control.
UA_EXPORT UA_StatusCode UA_AccessControl_defaultWithLoginCallback(UA_ServerConfig *config, UA_Boolean allowAnonymous, UA_CertificateVerification *verifyX509, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, UA_UsernamePasswordLoginCallback loginCallback, void *loginContext)
UA_StatusCode(* UA_UsernamePasswordLoginCallback)(const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:89
#define _UA_END_DECLS
Definition config.h:96
This work is licensed under a Creative Commons CCZero 1.0 Universal License.
_UA_BEGIN_DECLS typedef bool UA_Boolean
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition types.h:26
uint32_t UA_StatusCode
Definition types.h:77