From e141b382f67f984ef252af5025deab8ffee41438 Mon Sep 17 00:00:00 2001 From: Randy Armstrong Date: Mon, 26 Feb 2024 14:18:12 -0800 Subject: [PATCH] Add JSON encoding. --- Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs | 5 +++++ Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs b/Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs index 52e380a9d..7c5b35cba 100644 --- a/Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs +++ b/Stack/Opc.Ua.Core/Security/Constants/SecurityConstants.cs @@ -113,6 +113,11 @@ public static class Profiles /// public const string HttpsBinaryTransport = "http://opcfoundation.org/UA-Profile/Transport/https-uabinary"; + /// + /// Communicates with UA JSON over HTTPS. + /// + public const string HttpsJsonTransport = "http://opcfoundation.org/UA-Profile/Transport/https-uajson"; + /// /// Uri for "PubSub UDP UADP" Profile. /// This PubSub transport Facet defines a combination of the UDP transport protocol mapping with UADP message mapping diff --git a/Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs b/Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs index c77cd0605..3d7a666b6 100644 --- a/Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs +++ b/Stack/Opc.Ua.Core/Stack/Server/SecureChannelContext.cs @@ -121,6 +121,11 @@ public enum RequestEncoding /// /// The request used the UA XML encoding. /// - Xml + Xml, + + /// + /// The request used the UA JSON encoding. + /// + Json } }