IdentityToken#
- class IdentityToken#
Bases:
objectCredentials used to authenticate one OPC UA session.
Create credentials with
anonymous(),user_name(), orx509().Examples
>>> identity = IdentityToken.user_name("operator", "password") >>> client = OpcUaClient.connect("opc.tcp://localhost:4840", identity=identity)
Methods
Create an anonymous identity.
Create an identity from a username and password.
Read a user certificate and private key from filesystem paths.
- static anonymous()#
Create an anonymous identity.
- Returns:
IdentityToken – Anonymous session credentials.
- static user_name(username, password)#
Create an identity from a username and password.
- static x509(certificate_path, private_key_path)#
Read a user certificate and private key from filesystem paths.
These credentials authenticate the user, separately from the application’s certificate configured on the client.