Professional OPC
Development Tools


Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

UASecurityPolicyUriStrings class in DELPHI

29 Jan 2020 13:35 #8176 by support

there is always an issue with .NET static classes, as they cannot easily be made accessible to COM clients. Where we felt that something that cannot be worked around was missing, we have added a possibility to do so in COM somehow. Here, the static class only contains some constants.

Below is a shortened version of that class in C#:
namespace OpcLabs.EasyOpc.UA.Engine
    static public partial class UASecurityPolicyUriStrings
        public const string Aes128_Sha256_RsaOaep = "";
        public const string Aes256_Sha256_RsaPss = "";
        public const string Basic128Rsa15 = "";
        public const string Basic256 = "";
        public const string Basic256Sha256 = "";
        public const string Https = "";
        public const string None = "";

So you cannot use the class in Delphi, but you take one of the values above and use it in your Delphi code directly.
Kind regards

Please Log in or Create an account to join the conversation.

29 Jan 2020 10:13 #8175 by jkahlert

I'm programming QuickOPC in DELPHI and found the following description in your user's manual:

"The UAEndpointSelectionPolicy.SecurityPolicyUriString property, when not an empty string (empty string is the default), specifies the required security policy URI string of the endpoint. This allows the developer to select the precise security policy, when so required. The static UASecurityPolicyUriStrings class contains strings that can be used to specify the security policy URI."

How can I access the mentioned strings in the UASecurityPolicyUriStrings class from DELPHI? I found no corresponding declarations in the wrapper TLB files.

Thanks in advance

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.041 seconds