OPC Studio User's Guide and Reference
AbstractEasyUAClientServerApplication Class Methods


OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace : AbstractEasyUAClientServerApplication Class

For a list of all members of this type, see AbstractEasyUAClientServerApplication members.

Public Methods
 NameDescription
Public MethodAssures the presence of the own application certificate or certificate pack in the trusted peers certificate store.  
Public MethodBegins an asynchronous operation that obtains a new application own certificate or certificate pack from the certificate manager, and stores it for subsequent usage.  
Public MethodCancels an asynchronous operation started with the BeginObtainNewCertificateOrCertificatePack method.  
Public MethodCreates the own certificate or certificate pack the application is currently configured to use.  
Public MethodOverloaded. Releases the unmanaged resources used by the object and optionally releases the managed resources. (Inherited from OpcLabs.BaseLib.DisposableObject)
Public MethodHandles the end of the asynchronous operation started by the BeginObtainNewCertificateOrCertificatePack method.  
Public MethodOverloaded. Determines whether the specified System.Object is equal to the current object. (Inherited from OpcLabs.BaseLib.Object2)
Public MethodExports the OPC UA application configuration data into an XML stream.  
Public MethodExports the own certificate and optionally its private key to a given file.  
Public MethodExports the registration data of the OPC UA application into an XML stream.  
Public MethodExports the security settings of the OPC UA application into an XML stream.  
Public MethodFinds all registrations for this application URI in the GDS.  
Public MethodFinds the own certificate the application is currently configured to use.  
Public MethodGets the subject distinguished name the application is configured to use for its certificates.  
Public MethodGets the effective OPC UA application manifest, i.e. the currently used application registration information together with data related to PKI administration, such as paths to the certificate stores used.  
Public MethodGet the effective application host names.  
Public MethodServes as a hash function for a particular type. (Inherited from OpcLabs.BaseLib.Object2)
Public MethodDetermines strength of the password that is configured for use with the given certificate.  
Public Method  
Public MethodGets the System.Type of the current instance. (Inherited from object)
Public MethodImports the own certificate and its private key from a given file.  
Public MethodFinds all application certificate sub-ids.  
Public MethodRetrieves certificate type elements for the certificate types available for a given application store kind.  
Public MethodLocks the events on the component.  
Public MethodProtects or unprotects the private key of the given certificate, or certificate pack.  
Public MethodRetrieves the current trust lists for the application from the certificate manager, and refreshes own certificate stores accordingly.  
Public MethodCreates an application registration in the GDS, assigning it a new application ID. Existing registrations with the same application URI are removed first.  
Public MethodRemoves the own certificates or certificate pack the application is currently configured to use.  
Public MethodRemoves the password used to access the private key for given certificate.  
Public MethodSets the password used to access the private key for given certificate.  
Public Method (Inherited from OpcLabs.BaseLib.Object2)
Public MethodUnlocks the events on the component.  
Public MethodRemoves an application registration from the GDS, if it exists. All existing registrations for the application URI are removed.  
Public MethodUpdates an application registration in the GDS, keeping its application ID. A new registration is created if the application is not yet registered in the GDS. Preexisting registrations with the same application URI are removed.  
Public MethodValidates the own certificate or certificate pack the application is currently configured to use.  
Top
Protected Methods
 NameDescription
Protected MethodInfrastructure. Adds trust lists to the application.  
Protected MethodInfrastructure. Decodes trust lists from a binary stream.  
Protected MethodInfrastructure. Create a certificate signing request (CSR).  
Protected MethodOverloaded. Invokes the specified function if the object is not disposed, throwing an exception otherwise. (Inherited from OpcLabs.BaseLib.DisposableObject)
Protected MethodOverloaded. Invokes the specified function returning a not-null value if the object is not disposed, throwing an exception otherwise. (Inherited from OpcLabs.BaseLib.DisposableObject)
Protected MethodAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from object)
Protected MethodInfrastructure. Find the private key of the application's own certificate.  
Protected MethodFrees the managed objects in the state of this object. (Inherited from OpcLabs.BaseLib.DisposableObject)
Protected MethodInfrastructure. Gets the application configuration data.  
Protected Internal MethodInfrastructure.  
Protected MethodInfrastructure. Gets the registration information of the application.  
Protected MethodInfrastructure. Gets the security settings of the application.  
Protected MethodCalled when the object should dispose its resources. (Inherited from OpcLabs.BaseLib.DisposableObject)
Protected MethodCreates a shallow copy of the current System.Object. (Inherited from object)
Protected MethodInfrastructure. Sets the application's own certificate.  
Top
Extension Methods
 NameDescription
Public Extension MethodAssures presence and validity of the own certificate or certificate pack the application is currently configured to use.
Public Extension MethodOverloaded. Assures presence of the own certificate pack the application is currently configured to use.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The AssureOwnCertificatePack methods check if the application has its own application certificate pack (according to application configuration), and create the certificate pack if it is missing.

Returns true if a new certificate pack has been created. Returns false if an existing certificate pack was found and accepted as the current own certificate pack.

If the own certificate pack does not exist in the certificate store prior to the operation, the method creates it. Otherwise, the method also checks whether the instance certificates are present in the trusted peers certificate store, and if they are absent, it copies them there. This is in contrast to the CreateOwnCertificateOrCertificatePack method, which always creates new certificate(s) when successful.

Public Extension MethodOverloaded. Assures the presence of the own application certificate pack in the trusted peers certificate store, specifying certificate sub-id.
Public Extension MethodOverloaded. Begins obtaining a new application certificate or certificate pack from the certificate manager.

The BeginObtainNewCertificateOrCertificatePack methods begin an asynchronous operation that obtains a new application own certificate or certificate pack from the certificate manager, and stores it for subsequent usage.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

Public Extension MethodOverloaded. Begins obtaining a new application certificate pack from the certificate manager.

The BeginObtainNewCertificatePack methods begin an asynchronous operation that obtains a new application own certificate pack from the certificate manager, and stores it for subsequent usage.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

Public Extension MethodOverloaded. Creates the own application certificate pack.

The CreateOwnCertificatePack methods create the own certificate pack the application is currently configured to use.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

Public Extension MethodExports the OPC UA application configuration data into an XML file.
Public Extension MethodExports the OPC UA application manifest into a stream.
Public Extension MethodExports the OPC UA application manifest into an XML file.
Public Extension MethodOverloaded. Exports the own certificate and optionally its private key to a given file.
Public Extension MethodExports the registration data of the OPC UA application into an XML file.
Public Extension MethodExports the security settings of the OPC UA application into an XML file.
Public Extension MethodFinds the own certificate the application is currently configured to use.
Public Extension MethodGets the OPC UA registration information for this application.
Public Extension MethodGets an application ID assigned to the application by a specified GDS.
Public Extension MethodGets the subject distinguished name the application is configured to use for its certificates.
Public Extension MethodGets a dictionary of certificate subject names corresponding to all application certificate sub-ids.
Public Extension MethodOverloaded. Gets the own certificate pack the application is currently configured to use. Returns the own certificate pack, i.e. the dictionary of own certificates, keyed by the certificate type Id.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The actual number of certificates in the application certificate pack may be lower than the count of PackCertificateTypeIds. This is because multiple certificate types may end up using the same certificate. For example, OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaMinApplicationCertificateType specifies an application certificate with RSA key size 1024 or 2048 bits, and OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaSha256ApplicationCertificateType specifies an application certificate with RSA key size 2048, 3072 or 4096 bits. A single certificate with RSA key size of 2048 bits can therefore be used with both these certificate types.

Public Extension MethodDetermines strength of the password that is configured for use with the default certificate.
Public Extension MethodOverloaded. Determines whether the application's own certificate or certificate pack is present.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

If the specified certificate type Id is Null, the default certificate type Id from DefaultCertificateTypeId is used instead.

Public Extension MethodOverloaded. Determines whether the application's own certificate pack is present. Returns true if the application's own certificate pack is present in the certificate store. Returns false otherwise.
Public Extension MethodOverloaded. Determines whether a non-empty password is in use for the default certificate.
Public Extension MethodImports the own default certificate and its private key from a given file.
Public Extension MethodRetrieves certificate type elements available for an application instance.
Public Extension MethodOverloaded. Obtains a new certificate or certificate pack from the certificate manager. Returns the collection of certificates obtained from the certificate manager.

The ObtainNewCertificateOrCertificatePack methods obtain a new application own certificate or certificate pack from the certificate manager, and store it for subsequent usage.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

If the specified certificate type Id is Null, the default certificate type Id from DefaultCertificateTypeId is used instead.

The actual number of certificates in the application certificate pack may be lower than the count of PackCertificateTypeIds. This is because multiple certificate types may end up using the same certificate. For example, OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaMinApplicationCertificateType specifies an application certificate with RSA key size 1024 or 2048 bits, and OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaSha256ApplicationCertificateType specifies an application certificate with RSA key size 2048, 3072 or 4096 bits. A single certificate with RSA key size of 2048 bits can therefore be used with both these certificate types.

The certificate manager may not support all certificate types in the application certificate pack. For an unsupported certificate type, the value of the certificate in the resulting dictionary is null (Nothing in Visual Basic). Unsupported certificate types do not cause the method to fail (throw an exception).

The operation is synchronous. It can take considerable time to execute, because it involves multiple steps, and waiting for a finalization of the requests by the GDS (see the OpcLabs.EasyOpc.UA.Gds.IEasyUACertificateManagement.FinishRequest method).

For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificateOrCertificatePack method and related extension methods.

For a task-based asynchronous programming pattern alternative, see the ObtainNewCertificateOrCertificatePackAsync(IEasyUAClientServerApplication,UAObtainCertificateArguments) extension method and its overloads.

Public Extension MethodOverloaded. Asynchronously obtains a new certificate or certificate pack from the certificate manager. Returns a task that represents the asynchronous operation. The value of the TResult contains the collection of certificates obtained from the certificate manager.

The ObtainNewCertificateOrCertificatePackAsync methods asynchronously obtain a new application own certificate or certificate pack from the certificate manager, and store it for subsequent usage.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

If the specified certificate type Id is Null, the default certificate type Id from DefaultCertificateTypeId is used instead.

The operation is asynchronous, because it involves multiple steps, and waiting for a finalization of the request by the GDS (see the OpcLabs.EasyOpc.UA.Gds.IEasyUACertificateManagement.FinishRequest method).

For a synchronous alternative, see the ObtainNewCertificateOrCertificatePack(IEasyUAClientServerApplication,UAObtainCertificateArguments) extension method and its overloads.

For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificateOrCertificatePack method and related extension methods.

Public Extension MethodOverloaded. Obtains a new certificate pack from the certificate manager. Returns the collection of certificates obtained from the certificate manager.

The ObtainNewCertificatePack methods obtain a new application own certificate pack from the certificate manager, and store it for subsequent usage.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The actual number of certificates in the application certificate pack may be lower than the count of PackCertificateTypeIds. This is because multiple certificate types may end up using the same certificate. For example, OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaMinApplicationCertificateType specifies an application certificate with RSA key size 1024 or 2048 bits, and OpcLabs.EasyOpc.UA.Gds.AddressSpace.UACertificateTypeIds.RsaSha256ApplicationCertificateType specifies an application certificate with RSA key size 2048, 3072 or 4096 bits. A single certificate with RSA key size of 2048 bits can therefore be used with both these certificate types.

The certificate manager may not support all certificate types in the application certificate pack. For an unsupported certificate type, the value of the certificate in the resulting dictionary is null (Nothing in Visual Basic). Unsupported certificate types do not cause the method to fail (throw an exception).

The operation is synchronous. It can take considerable time to execute, because it involves multiple steps, and waiting for a finalization of the requests by the GDS (see the OpcLabs.EasyOpc.UA.Gds.IEasyUACertificateManagement.FinishRequest method).

For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificatePack(IEasyUAClientServerApplication,UAEndpointDescriptor) method and related extension methods.

For a task-based asynchronous programming pattern alternative, see the ObtainNewCertificatePackAsync(IEasyUAClientServerApplication,UAEndpointDescriptor) extension method and its overloads.

Public Extension MethodOverloaded. Asynchronously obtains a new certificate pack from the certificate manager. Returns a task that represents the asynchronous operation. The value of the TResult contains the collection of certificates obtained from the certificate manager.

The ObtainNewCertificatePackAsync methods asynchronously obtain a new application own certificate pack from the certificate manager, and store it for subsequent usage.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The operation is asynchronous, because it involves multiple steps, and waiting for a finalization of the request by the GDS (see the OpcLabs.EasyOpc.UA.Gds.IEasyUACertificateManagement.FinishRequest method).

For a synchronous alternative, see the ObtainNewCertificatePack(IEasyUAClientServerApplication,UAEndpointDescriptor) extension method and its overloads.

For an alternative based on asynchronous programming model (APM, System.IAsyncResult) pattern, see the BeginObtainNewCertificatePack(IEasyUAClientServerApplication,UAEndpointDescriptor) method and related extension methods.

Public Extension MethodOverloaded. Protects the private key of the given certificate, or certificate pack.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

If the specified certificate type Id is Null, the default certificate type Id from DefaultCertificateTypeId is used instead.

A preexisting private key password, if any, must be correctly configured in the application, for this operation to succeed.

Public Extension MethodOverloaded. Protects the private keys of the certificate pack.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

A preexisting private key password, if any, must be correctly configured in the application, for this operation to succeed.

Public Extension MethodRetrieves the current trust lists for the application from the certificate manager, and refreshes own certificate stores accordingly.
Public Extension MethodOverloaded. Removes the own application certificate pack.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The RemoveOwnCertificatePack methods remove the own certificate pack the application is currently configured to use.

Public Extension MethodSets the password used to access the private key for the default certificate.
Public Extension MethodSets the arbitrary object associated with the node.
Public Extension MethodShows the form which allows the interactive user to administer the OPC UA application modally.
Public Extension MethodOverloaded. Unprotects the private key of the given certificate, or certificate pack.

When certificate pack is used, this method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

If the specified certificate type Id is Null, the default certificate type Id from DefaultCertificateTypeId is used instead.

A preexisting private key password, if any, must be correctly configured in the application, for this operation to succeed.

Public Extension MethodOverloaded. Unprotects the private keys of the certificate pack.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

A preexisting private key password, if any, must be correctly configured in the application, for this operation to succeed.

Public Extension MethodOverloaded. Validates the own application certificate pack.

The ValidateOwnCertificatePack methods validate the own certificate pack the application is currently configured to use.

This method operates on certificates with certificate type Ids given by PackCertificateTypeIds.

The own certificate must exist in the certificate store prior to the operation, otherwise an error is reported.

Top
See Also

Reference

AbstractEasyUAClientServerApplication Class
OpcLabs.EasyOpc.UA.Application Namespace