Skip to content

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 ​

protected · 2 overloads

OverloadDescription
OpcUserIdentity(UserIdentityToken)protected · since v2.42Initializes a new instance of the OpcUserIdentity class using the token specified.
OpcUserIdentity(OpcIdentityToken)protected · since v2.53Initializes a new instance of the OpcUserIdentity class using the token specified.

Exceptions (all overloads)

ExceptionCondition
ArgumentNullExceptionThe token is a null reference (Nothing in Visual Basic).

OpcUserIdentity(UserIdentityToken) ​

protected · since v2.42

Initializes a new instance of the OpcUserIdentity class using the token specified.

csharp
protected OpcUserIdentity(UserIdentityToken token)
vbnet
Protected Sub New(token As UserIdentityToken)

Parameters

NameTypeDescription
tokenUserIdentityTokenThe user identity token which describes the identity.

OpcUserIdentity(OpcIdentityToken) ​

protected · since v2.53

Initializes a new instance of the OpcUserIdentity class using the token specified.

csharp
protected OpcUserIdentity(OpcIdentityToken token)
vbnet
Protected Sub New(token As OpcIdentityToken)

Parameters

NameTypeDescription
tokenOpcIdentityTokenThe user identity token which describes the identity.

Properties ​

DisplayName ​

override

Gets the name of the identity to display.

csharp
public override string DisplayName { get; }
vbnet
Public Overrides ReadOnly Property DisplayName As String

Property value

String

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

DisplayName

Methods ​

Impersonate ​

override

Impersonates the user represented by the identity.

csharp
public override OpcImpersonationContext Impersonate()
vbnet
Public Overrides Function Impersonate() As OpcImpersonationContext

Returns

OpcImpersonationContext

An OpcDefaultImpersonationContext.

Overrides

Impersonate

Remarks

The method does not impersonate the user; the context returned does nothing when it is undone.

ToString ​

override

Returns a string that represents the identity.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string containing the DisplayName of the identity.

Overrides

ToString()