Api constructor

Initializes a new instance of the Api class.

Namespace: IntervalZero.KINGSTAR.OpcUa.Api

Assembly: IntervalZero.KINGSTAR.OpcUa.Api (in IntervalZero.KINGSTAR.OpcUa.Client.dll) Version: 4.4.0.0

Syntax

C#VB
public Api(
       ushort defaultCertificateLifeTimeInMonths = 120,
       ushort certificateRecreationThresholdInMonths = 60
)
Public Sub New(
       defaultCertificateLifeTimeInMonths As UShort = 120,
       certificateRecreationThresholdInMonths As UShort = 60
)

Parameters

defaultCertificateLifeTimeInMonths [optional]

Type: ushort

Default value: 120

Sets the default certificate lifespan in months for the KINGSTAR OPC UA client's automatically generated self-signed certificates. Please refer to Certificate Management for more information.

NOTE:  defaultCertificateLifeTimeInMonths is supported for KINGSTAR 4.5 and later versions.

 

certificateRecreationThresholdInMonths [optional]

Type: ushort

Default value: 60

Specifies the time in months before expiration when the constructor will trigger certificate regeneration. Please refer to Certificate Management for more information.

NOTE:  certificateRecreationThresholdInMonths is supported for KINGSTAR 4.5 and later versions.

See also

Api Class

IntervalZero.KINGSTAR.OpcUa.Api Namespace