Skip to content

Reference

OpcCertificateIdentity Members

Represents the identity of a user which is described by a certificate.

Reference

OpcCertificateIdentity Members ​

Type
OpcCertificateIdentity
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from OpcUserIdentity, OpcIdentity.

Constructors ​

OpcCertificateIdentity ​

Initializes a new instance of the OpcCertificateIdentity class using the certificate specified.

csharp
public OpcCertificateIdentity(X509Certificate2 certificate)
vbnet
Public Sub New(certificate As X509Certificate2)

Parameters

NameTypeDescription
certificateX509Certificate2The certificate which describes the identity.

Exceptions

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

Properties ​

Certificate ​

Gets the certificate which describes the identity.

csharp
public X509Certificate2 Certificate { get; }
vbnet
Public ReadOnly Property Certificate As X509Certificate2

Property value

X509Certificate2

The certificate of the user.

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.

Matches ​

virtual

Determines whether the certificate specified is the certificate of the identity.

csharp
public virtual bool Matches(X509Certificate2 certificate)
vbnet
Public Overridable Function Matches(certificate As X509Certificate2) As Boolean

Parameters

NameTypeDescription
certificateX509Certificate2The certificate to compare.

Returns

Boolean

The value true if the thumbprint of the certificate is equal to the thumbprint of the Certificate; otherwise the value false.

Exceptions

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