Beispiel #1
0
            public BinarySecretTokenEntry(WSTrust parent)
            {
                _parent          = parent;
                _otherDictionary = null;

                if (parent.SerializerDictionary is TrustDec2005Dictionary)
                {
                    _otherDictionary = XD.TrustFeb2005Dictionary;
                }

                if (parent.SerializerDictionary is TrustFeb2005Dictionary)
                {
                    _otherDictionary = DXD.TrustDec2005Dictionary;
                }

                // always set it, so we don't have to worry about null
                if (_otherDictionary == null)
                {
                    _otherDictionary = _parent.SerializerDictionary;
                }
            }
Beispiel #2
0
 internal override bool IsKeyWrapAlgorithmElement(XmlElement element, out string keyWrapAlgorithm)
 {
     return(WSTrust.CheckElement(element, DXD.TrustDec2005Dictionary.KeyWrapAlgorithm.Value, DXD.TrustDec2005Dictionary.Namespace.Value, out keyWrapAlgorithm));
 }