Reference
OpcUserIdentity Members
Represents the identity of a user described by an OPC UA user identity token (e.g. an anonymous user, a user name or a certificate).
Reference
OpcUserIdentity Members
- Type
- OpcUserIdentity
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcIdentity.
Constructors
OpcUserIdentity
| Overload | Description |
|---|---|
| OpcUserIdentity( | Initializes a new instance of the OpcUserIdentity class using the token specified. |
| OpcUserIdentity( | Initializes a new instance of the OpcUserIdentity class using the token specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The token is a null reference ( |
OpcUserIdentity(UserIdentityToken)
Initializes a new instance of the OpcUserIdentity class using the token specified.
protected OpcUserIdentity(UserIdentityToken token)Protected Sub New(token As UserIdentityToken)Parameters
| Name | Type | Description |
|---|---|---|
token | User | The user identity token which describes the identity. |
OpcUserIdentity(OpcIdentityToken)
Initializes a new instance of the OpcUserIdentity class using the token specified.
protected OpcUserIdentity(OpcIdentityToken token)Protected Sub New(token As OpcIdentityToken)Parameters
| Name | Type | Description |
|---|---|---|
token | OpcIdentityToken | The user identity token which describes the identity. |
Properties
DisplayName
Gets the name of the identity to display.
public override string DisplayName { get; }Public Overrides ReadOnly Property DisplayName As StringProperty value
The display name determined by the OPC UA stack from the token: "Anonymous" for an anonymous user, the user name, or the subject of the certificate.
Overrides
Methods
Impersonate
Impersonates the user represented by the identity.
public override OpcImpersonationContext Impersonate()Public Overrides Function Impersonate() As OpcImpersonationContextReturns
An OpcDefaultImpersonationContext.
Overrides
Remarks
The method does not impersonate the user; the context returned does nothing when it is undone.
ToString
Returns a string that represents the identity.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string containing the DisplayName of the identity.
Overrides

