Reference
OpcCertificateSettings Members
Defines the setup of an application instance certificate.
Reference
OpcCertificateSettings Members
- Type
- OpcCertificateSettings
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcCertificateSettings
Initializes a new instance of the OpcCertificateSettings class using the name of the application its instance certificate information is to be represented by the settings.
public OpcCertificateSettings(string applicationName)Public Sub New(applicationName As String)Parameters
| Name | Type | Description |
|---|---|---|
applicationName | String | The name of the application its certificate information is to be maintained. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The applicationName is an empty string. |
| Argument | The applicationName is a null reference ( |
Fields
DefaultKeySize
Represents the default value that is used by the OpcCertificateSettings as initial value of the KeySize property.
public static readonly int DefaultKeySizePublic Shared ReadOnly DefaultKeySize As IntegerField value
DefaultLifetime
Represents the default value that is used by the OpcCertificateSettings as initial value of the Lifetime property.
public static readonly int DefaultLifetimePublic Shared ReadOnly DefaultLifetime As IntegerField value
Properties
ApplicationName
Gets the name of the application its instance certificate is setup.
public string ApplicationName { get; }Public ReadOnly Property ApplicationName As StringProperty value
The full qualified name of the application to identify by the certificate.
ApplicationUri
Gets or sets the uniform resource identifier of the application instance.
public Uri ApplicationUri { get; set; }Public Property ApplicationUri As UriProperty value
The full qualified Uri to the application instance resource identified by the certificate or a null reference (Nothing in Visual Basic). The default value is a null reference (Nothing in Visual Basic).
DomainNames
Gets a collection of domain names typically used by the application instance. In case of a server application the list have to contain the name of the machine used to access the server.
public Collection<string> DomainNames { get; }Public ReadOnly Property DomainNames As Collection(Of String)Property value
A Collection<T> of domain names used within the environment of the application instance (can be left empty). The default list of domain names is empty.
Remarks
In case there is no domain name defined the host name of the machine which creates the application instance certificate is used instead. In case of a server application the domain name have to be the name of the machine which is to be used by the clients to access the server.
KeySize
Gets or sets the number of bits to use to create the key of the certificate.
public int KeySize { get; set; }Public Property KeySize As IntegerProperty value
The number of bits (a multiple of eight) to use for the key.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value is not a multiple of eight. |
| Argument | The value is lower than eight. |
Remarks
The default value is DefaultKeySize.
Lifetime
Gets or sets the number of months the certificate will be valid.
public int Lifetime { get; set; }Public Property Lifetime As IntegerProperty value
The number of months until the certificate will expire, starting at the month within the certificate has been created.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The value is lower than one. |
Remarks
The default value is DefaultLifetime.
Organization
Gets or sets the name of the organization running the application instance.
public string Organization { get; set; }Public Property Organization As StringProperty value
The name of the organization used as the organization name (O) portion of the subject of the application instance certificate or a null reference (Nothing in Visual Basic) in case there the subject does not contain an organization name. The default value is a null reference (Nothing in Visual Basic).
Remarks
The value is only used in case there the SubjectName is a null reference (Nothing in Visual Basic).
SubjectName
Gets or sets the subject name portion of the certificate.
public string SubjectName { get; set; }Public Property SubjectName As StringProperty value
The subject name (SN) portion of the application instance certificate or a null reference (Nothing in Visual Basic). The default value is a null reference (Nothing in Visual Basic).
Methods
Of
Retrieves the best certificate setup for the application instance specified.
[CLSCompliant(false)]
public static OpcCertificateSettings Of(IOpcApplicationInstance instance)<CLSCompliant(False)>
Public Shared Function [Of](
instance As IOpcApplicationInstance) As OpcCertificateSettingsParameters
| Name | Type | Description |
|---|---|---|
instance | IOpc | The application instance for that the best certificate setup is to be retrieved. |
Returns
An instance of the OpcCertificateSettings setup using the application information provided the instance passed.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The instance is a null reference ( |

