| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Xml; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF.Security |
| | | 7 | | { |
| | | 8 | | internal class WSTrustDec2005 : WSTrustFeb2005 |
| | | 9 | | { |
| | | 10 | | public WSTrustDec2005(WSSecurityTokenSerializer tokenSerializer) |
| | 67 | 11 | | : base(tokenSerializer) |
| | | 12 | | { |
| | 67 | 13 | | } |
| | | 14 | | |
| | 162 | 15 | | public override TrustDictionary SerializerDictionary => DXD.TrustDec2005Dictionary; |
| | | 16 | | |
| | | 17 | | public class DriverDec2005 : DriverFeb2005 |
| | | 18 | | { |
| | | 19 | | public DriverDec2005(SecurityStandardsManager standardsManager) |
| | 67 | 20 | | : base(standardsManager) |
| | | 21 | | { |
| | 67 | 22 | | } |
| | | 23 | | |
| | 656 | 24 | | public override TrustDictionary DriverDictionary => DXD.TrustDec2005Dictionary; |
| | | 25 | | |
| | 0 | 26 | | public override XmlDictionaryString RequestSecurityTokenResponseFinalAction => DXD.TrustDec2005Dictionary.Re |
| | | 27 | | |
| | | 28 | | internal virtual bool IsSecondaryParametersElement(XmlElement element) |
| | | 29 | | { |
| | 0 | 30 | | return ((element.LocalName == DXD.TrustDec2005Dictionary.SecondaryParameters.Value) && |
| | 0 | 31 | | (element.NamespaceURI == DXD.TrustDec2005Dictionary.Namespace.Value)); |
| | | 32 | | } |
| | | 33 | | |
| | | 34 | | public virtual XmlElement CreateKeyWrapAlgorithmElement(string keyWrapAlgorithm) |
| | | 35 | | { |
| | 0 | 36 | | if (keyWrapAlgorithm == null) |
| | | 37 | | { |
| | 0 | 38 | | throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(keyWrapAlgorithm)); |
| | | 39 | | } |
| | | 40 | | |
| | 0 | 41 | | XmlDocument doc = new XmlDocument(); |
| | 0 | 42 | | XmlElement result = doc.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionar |
| | 0 | 43 | | DXD.TrustDec2005Dictionary.Namespace.Value); |
| | 0 | 44 | | result.AppendChild(doc.CreateTextNode(keyWrapAlgorithm)); |
| | 0 | 45 | | return result; |
| | | 46 | | } |
| | | 47 | | } |
| | | 48 | | } |
| | | 49 | | } |