Professional OPC
Development Tools

logos

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

More
29 Jan 2020 13:35 #8176 by support
Hello,

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 = "http://opcfoundation.org/UA/SecurityPolicy#Aes128_Sha256_RsaOaep";
        public const string Aes256_Sha256_RsaPss = "http://opcfoundation.org/UA/SecurityPolicy#Aes256_Sha256_RsaPss";
        public const string Basic128Rsa15 = "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15";
        public const string Basic256 = "http://opcfoundation.org/UA/SecurityPolicy#Basic256";
        public const string Basic256Sha256 = "http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256";
        public const string Https = "http://opcfoundation.org/UA/SecurityPolicy#Https";
        public const string None = "http://opcfoundation.org/UA/SecurityPolicy#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.

More
29 Jan 2020 10:13 #8175 by jkahlert
Hi,

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.080 seconds