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.
public OpcCertificateIdentity(X509Certificate2 certificate)Public Sub New(certificate As X509Certificate2)Parameters
| Name | Type | Description |
|---|---|---|
certificate | X509Certificate2 | The certificate which describes the identity. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The certificate is a null reference ( |
Properties
Certificate
Gets the certificate which describes the identity.
public X509Certificate2 Certificate { get; }Public ReadOnly Property Certificate As X509Certificate2Property value
The certificate of the user.
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.
Matches
Determines whether the certificate specified is the certificate of the identity.
public virtual bool Matches(X509Certificate2 certificate)Public Overridable Function Matches(certificate As X509Certificate2) As BooleanParameters
| Name | Type | Description |
|---|---|---|
certificate | X509Certificate2 | The certificate to compare. |
Returns
The value true if the thumbprint of the certificate is equal to the thumbprint of the Certificate; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The certificate is a null reference ( |

