33 references to ElementNames
System.IdentityModel (33)
System\IdentityModel\Protocols\WSTrust\WSTrust13ConstantsAdapter.cs (4)
104
private string keyWrapAlgorithm = WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm;
105
private string secondaryParameters = WSTrust13Constants.
ElementNames
.SecondaryParameters;
106
private string requestSecurityTokenResponseCollection = WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponseCollection;
107
private string validateTarget = WSTrust13Constants.
ElementNames
.ValidateTarget;
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (20)
67
if (reader.IsStartElement(WSTrust13Constants.
ElementNames
.SecondaryParameters, WSTrust13Constants.NamespaceURI))
73
if (reader.IsStartElement(WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI))
78
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm)));
84
if (reader.IsStartElement(WSTrust13Constants.
ElementNames
.ValidateTarget, WSTrust13Constants.NamespaceURI))
135
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm)));
138
this.WriteXmlElement(writer, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, rst.KeyWrapAlgorithm, rst, context);
143
this.WriteXmlElement(writer, WSTrust13Constants.
ElementNames
.SecondaryParameters, rst.SecondaryParameters, rst, context);
148
this.WriteXmlElement(writer, WSTrust13Constants.
ElementNames
.ValidateTarget, rst.ValidateTarget, rst, context);
212
if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.
ElementNames
.SecondaryParameters))
218
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2064, WSTrust13Constants.
ElementNames
.SecondaryParameters)));
227
writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.
ElementNames
.SecondaryParameters, WSTrust13Constants.NamespaceURI);
243
if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm))
245
writer.WriteElementString(WSTrust13Constants.Prefix, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, (string)elementValue);
249
if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.
ElementNames
.ValidateTarget))
255
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, WSTrust13Constants.
ElementNames
.ValidateTarget, WSTrust13Constants.NamespaceURI, typeof(SecurityTokenElement), elementValue));
258
writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.
ElementNames
.ValidateTarget, WSTrust13Constants.NamespaceURI);
292
return reader.IsStartElement(WSTrust13Constants.
ElementNames
.RequestSecurityToken, WSTrust13Constants.NamespaceURI);
321
WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI))
330
WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm,
336
WSTrust13Constants.
ElementNames
.SecondaryParameters, WSTrust13Constants.NamespaceURI))
System\IdentityModel\Protocols\WSTrust\WSTrust13ResponseSerializer.cs (9)
36
if (reader.IsStartElement(WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI))
38
reader.ReadStartElement(WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI);
78
if (reader.IsStartElement(WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI))
117
this.WriteXmlElement(writer, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, rstr.KeyWrapAlgorithm, rstr, context);
148
writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI);
191
if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm))
193
writer.WriteElementString(WSTrust13Constants.Prefix, WSTrust13Constants.
ElementNames
.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, (string)elementValue);
217
return reader.IsStartElement(WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI)
218
|| reader.IsStartElement(WSTrust13Constants.
ElementNames
.RequestSecurityTokenResponse, WSTrust13Constants.NamespaceURI);