class documentation
class AccessControl(UserManager, AsyncTaskMixin):
Constructor: AccessControl(server)
Handles user authentication.
| Method | __init__ |
Construct new instance using server. |
| Method | get |
Check whether given user credentials are correct and allowed to log in. |
| Async Method | init |
Initialize OPC UA representation of all users. |
| Instance Variable | logger |
Undocumented |
| Instance Variable | minimum |
Undocumented |
| Instance Variable | on |
Undocumented |
| Instance Variable | on |
Undocumented |
| Instance Variable | running |
Undocumented |
| Property | sessions |
Read-only sequence of sessions. |
| Property | users |
Read-only mapping of users. |
| Async Method | _add |
Undocumented |
| Async Method | _check |
Continuously check for closed sessions while running. |
| Async Method | _remove |
Undocumented |
| Instance Variable | _lock |
Undocumented |
| Instance Variable | _server |
Undocumented |
| Instance Variable | _sessions |
Undocumented |
| Instance Variable | _task |
Undocumented |
| Instance Variable | _users |
Undocumented |
@override
def get_user(self, iserver: InternalServer, username: str | None = None, password: str | bytes | None = None, certificate: bytes | None = None) -> User | None:
¶
Check whether given user credentials are correct and allowed to log in.
| Returns | |
User | None | User instance if user is allowed to log in, None otherwise. |