2 writes to NamespaceURI
System.IdentityModel (2)
System\IdentityModel\Protocols\WSTrust\WSTrust13ConstantsAdapter.cs (1)
20
NamespaceURI
= WSTrust13Constants.NamespaceURI;
System\IdentityModel\Protocols\WSTrust\WSTrustFeb2005ConstantsAdapter.cs (1)
19
NamespaceURI
= WSTrustFeb2005Constants.NamespaceURI;
174 references to NamespaceURI
System.IdentityModel (174)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (174)
43
if (!reader.IsStartElement(trustConstants.Elements.RequestSecurityToken, trustConstants.
NamespaceURI
))
45
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.RequestSecurityToken, trustConstants.
NamespaceURI
)));
91
if (reader.IsStartElement(trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
))
96
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, rst.TokenType)));
102
if (reader.IsStartElement(trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
))
114
if (reader.IsStartElement(trustConstants.Elements.Issuer, trustConstants.
NamespaceURI
))
120
if (reader.IsStartElement(trustConstants.Elements.ProofEncryption, trustConstants.
NamespaceURI
))
135
if (reader.IsStartElement(trustConstants.Elements.Encryption, trustConstants.
NamespaceURI
))
150
if (reader.IsStartElement(trustConstants.Elements.DelegateTo, trustConstants.
NamespaceURI
))
165
if (reader.IsStartElement(trustConstants.Elements.Claims, trustConstants.
NamespaceURI
))
184
reader.ReadStartElement(trustConstants.Elements.Claims, trustConstants.
NamespaceURI
);
235
if (reader.IsStartElement(trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
))
239
reader.ReadStartElement(trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
);
262
if (reader.IsStartElement(trustConstants.Elements.BinaryExchange, trustConstants.
NamespaceURI
))
268
if (reader.IsStartElement(trustConstants.Elements.Lifetime, trustConstants.
NamespaceURI
))
274
if (reader.IsStartElement(trustConstants.Elements.RenewTarget, trustConstants.
NamespaceURI
))
291
if (reader.IsStartElement(trustConstants.Elements.OnBehalfOf, trustConstants.
NamespaceURI
))
337
if (reader.IsStartElement(trustConstants.Elements.KeyType, trustConstants.
NamespaceURI
))
343
if (reader.IsStartElement(trustConstants.Elements.KeySize, trustConstants.
NamespaceURI
))
358
if (reader.IsStartElement(trustConstants.Elements.UseKey, trustConstants.
NamespaceURI
))
408
if (reader.IsStartElement(trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
))
413
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, rst.SignWith)));
419
if (reader.IsStartElement(trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
))
424
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, rst.EncryptWith)));
430
if (reader.IsStartElement(trustConstants.Elements.ComputedKeyAlgorithm, trustConstants.
NamespaceURI
))
436
if (reader.IsStartElement(trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
))
438
rst.AuthenticationType = reader.ReadElementContentAsString(trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
);
441
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, rst.AuthenticationType)));
447
if (reader.IsStartElement(trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
))
449
rst.EncryptionAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
);
452
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, rst.EncryptionAlgorithm)));
458
if (reader.IsStartElement(trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
))
460
rst.CanonicalizationAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
);
463
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, rst.CanonicalizationAlgorithm)));
469
if (reader.IsStartElement(trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
))
471
rst.SignatureAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
);
474
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, rst.SignatureAlgorithm)));
480
if (reader.IsStartElement(trustConstants.Elements.Forwardable, trustConstants.
NamespaceURI
))
486
if (reader.IsStartElement(trustConstants.Elements.Delegatable, trustConstants.
NamespaceURI
))
492
if (reader.IsStartElement(trustConstants.Elements.AllowPostdating, trustConstants.
NamespaceURI
))
506
if (reader.IsStartElement(trustConstants.Elements.Renewing, trustConstants.
NamespaceURI
))
535
if (reader.IsStartElement(trustConstants.Elements.CancelTarget, trustConstants.
NamespaceURI
))
550
if (reader.IsStartElement(trustConstants.Elements.Participants, trustConstants.
NamespaceURI
))
562
if (reader.IsStartElement(trustConstants.Elements.Primary, trustConstants.
NamespaceURI
))
564
reader.ReadStartElement(trustConstants.Elements.Primary, trustConstants.
NamespaceURI
);
569
while (reader.IsStartElement(trustConstants.Elements.Participant, trustConstants.
NamespaceURI
))
571
reader.ReadStartElement(trustConstants.Elements.Participant, trustConstants.
NamespaceURI
);
578
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3223, trustConstants.Elements.Participants, trustConstants.
NamespaceURI
, reader.LocalName, reader.NamespaceURI)));
681
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestSecurityToken, trustConstants.
NamespaceURI
);
920
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Claims, trustConstants.
NamespaceURI
);
924
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3136, trustConstants.Attributes.Dialect, trustConstants.Elements.Claims, trustConstants.
NamespaceURI
, claims.Dialect)));
982
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, (string)elementValue)));
985
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, (string)elementValue);
993
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, (string)elementValue)));
996
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, (string)elementValue);
1005
writer.WriteStartElement(trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
);
1015
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.
NamespaceURI
, Convert.ToString(((int)elementValue), CultureInfo.InvariantCulture));
1037
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.RenewTarget, trustConstants.
NamespaceURI
, typeof(SecurityTokenElement), elementValue));
1040
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RenewTarget, trustConstants.
NamespaceURI
);
1057
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.OnBehalfOf, trustConstants.
NamespaceURI
);
1077
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
, (string)elementValue)));
1088
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, ((string)elementValue))));
1091
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, ((string)elementValue));
1109
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.UseKey, trustConstants.
NamespaceURI
);
1121
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, ((string)elementValue))));
1124
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, (string)elementValue);
1132
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, ((string)elementValue))));
1135
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
1143
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, ((string)elementValue))));
1146
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
1154
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, ((string)elementValue))));
1157
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
1165
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Encryption, trustConstants.
NamespaceURI
);
1184
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.ProofEncryption, trustConstants.
NamespaceURI
);
1203
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.DelegateTo, trustConstants.
NamespaceURI
);
1222
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Forwardable, trustConstants.
NamespaceURI
, typeof(bool), elementValue));
1225
writer.WriteStartElement(trustConstants.Elements.Forwardable, trustConstants.
NamespaceURI
);
1235
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Delegatable, trustConstants.
NamespaceURI
, typeof(bool), elementValue));
1238
writer.WriteStartElement(trustConstants.Elements.Delegatable, trustConstants.
NamespaceURI
);
1246
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.AllowPostdating, trustConstants.
NamespaceURI
);
1256
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Renewing, trustConstants.
NamespaceURI
, typeof(Renewing), elementValue));
1259
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Renewing, trustConstants.
NamespaceURI
);
1272
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.CancelTarget, trustConstants.
NamespaceURI
, typeof(SecurityTokenElement), elementValue));
1275
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.CancelTarget, trustConstants.
NamespaceURI
);
1296
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, trustConstants.Elements.Participant, trustConstants.
NamespaceURI
, typeof(Participants), elementValue));
1299
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Participants, trustConstants.
NamespaceURI
);
1303
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Primary, trustConstants.
NamespaceURI
);
1310
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Participant, trustConstants.
NamespaceURI
);
1375
if (!reader.IsStartElement(trustConstants.Elements.RequestSecurityTokenResponse, trustConstants.
NamespaceURI
))
1377
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.RequestSecurityTokenResponse, trustConstants.
NamespaceURI
)));
1422
if (reader.IsStartElement(trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
))
1426
reader.ReadStartElement(trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
);
1447
if (reader.IsStartElement(trustConstants.Elements.KeySize, trustConstants.
NamespaceURI
))
1462
if (reader.IsStartElement(trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
))
1468
if (reader.IsStartElement(trustConstants.Elements.Lifetime, trustConstants.
NamespaceURI
))
1474
if (reader.IsStartElement(trustConstants.Elements.RequestedSecurityToken, trustConstants.
NamespaceURI
))
1495
if (reader.IsStartElement(trustConstants.Elements.RequestedProofToken, trustConstants.
NamespaceURI
))
1501
if ((reader.LocalName == trustConstants.Elements.ComputedKey) && (reader.NamespaceURI == trustConstants.
NamespaceURI
))
1528
if (reader.IsStartElement(trustConstants.Elements.RequestedAttachedReference, trustConstants.
NamespaceURI
))
1545
if (reader.IsStartElement(trustConstants.Elements.RequestedUnattachedReference, trustConstants.
NamespaceURI
))
1562
if (reader.IsStartElement(trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
))
1567
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, rstr.TokenType)));
1573
if (reader.IsStartElement(trustConstants.Elements.KeyType, trustConstants.
NamespaceURI
))
1579
if (reader.IsStartElement(trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
))
1581
rstr.AuthenticationType = reader.ReadElementContentAsString(trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
);
1584
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, rstr.AuthenticationType)));
1590
if (reader.IsStartElement(trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
))
1592
rstr.EncryptionAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
);
1595
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, rstr.EncryptionAlgorithm)));
1601
if (reader.IsStartElement(trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
))
1603
rstr.CanonicalizationAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
);
1606
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, rstr.CanonicalizationAlgorithm)));
1612
if (reader.IsStartElement(trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
))
1614
rstr.SignatureAlgorithm = reader.ReadElementContentAsString(trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
);
1617
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, rstr.SignatureAlgorithm)));
1623
if (reader.IsStartElement(trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
))
1628
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, rstr.SignWith)));
1634
if (reader.IsStartElement(trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
))
1639
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, rstr.EncryptWith)));
1645
if (reader.IsStartElement(trustConstants.Elements.BinaryExchange, trustConstants.
NamespaceURI
))
1651
if (reader.IsStartElement(trustConstants.Elements.Status, trustConstants.
NamespaceURI
))
1657
if (reader.IsStartElement(trustConstants.Elements.RequestedTokenCancelled, trustConstants.
NamespaceURI
))
1697
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestSecurityTokenResponse, trustConstants.
NamespaceURI
);
1873
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Entropy, trustConstants.
NamespaceURI
);
1883
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeySize, trustConstants.
NamespaceURI
, Convert.ToString((int)elementValue, CultureInfo.InvariantCulture));
1905
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestedSecurityToken, trustConstants.
NamespaceURI
);
1928
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestedProofToken, trustConstants.
NamespaceURI
);
1946
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestedAttachedReference, trustConstants.
NamespaceURI
);
1954
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestedUnattachedReference, trustConstants.
NamespaceURI
);
1964
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, (string)elementValue)));
1967
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.TokenType, trustConstants.
NamespaceURI
, (string)elementValue);
1975
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
, (string)elementValue)));
1992
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, (string)elementValue)));
1995
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.AuthenticationType, trustConstants.
NamespaceURI
, (string)elementValue);
2003
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue)));
2006
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.EncryptionAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
2014
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue)));
2017
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.CanonicalizationAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
2025
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue)));
2028
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.SignatureAlgorithm, trustConstants.
NamespaceURI
, (string)elementValue);
2036
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, (string)elementValue)));
2039
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.SignWith, trustConstants.
NamespaceURI
, (string)elementValue);
2047
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, (string)elementValue)));
2050
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.EncryptWith, trustConstants.
NamespaceURI
, (string)elementValue);
2068
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.RequestedTokenCancelled, trustConstants.
NamespaceURI
);
2097
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.ComputedKeyAlgorithm, trustConstants.
NamespaceURI
, computedKeyAlgorithm)));
2127
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, elementName, trustConstants.
NamespaceURI
, computedKeyAlgorithm)));
2142
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, elementName, trustConstants.
NamespaceURI
, computedKeyAlgorithmAsStr)));
2145
writer.WriteElementString(trustConstants.Prefix, elementName, trustConstants.
NamespaceURI
, computedKeyAlgorithmAsStr);
2160
if (!reader.IsStartElement(trustConstants.Elements.Status, trustConstants.
NamespaceURI
))
2163
SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.Status, trustConstants.
NamespaceURI
)));
2170
if (!reader.IsStartElement(trustConstants.Elements.Code, trustConstants.
NamespaceURI
))
2173
SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.Code, trustConstants.
NamespaceURI
)));
2176
code = reader.ReadElementContentAsString(trustConstants.Elements.Code, trustConstants.
NamespaceURI
);
2177
if (reader.IsStartElement(trustConstants.Elements.Reason, trustConstants.
NamespaceURI
))
2179
reason = reader.ReadElementContentAsString(trustConstants.Elements.Reason, trustConstants.
NamespaceURI
);
2198
if (!reader.IsStartElement(trustConstants.Elements.BinaryExchange, trustConstants.
NamespaceURI
))
2201
SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.BinaryExchange, trustConstants.
NamespaceURI
)));
2298
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.BinaryExchange, trustConstants.
NamespaceURI
);
2327
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Status, trustConstants.
NamespaceURI
);
2328
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Code, trustConstants.
NamespaceURI
);
2333
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Reason, trustConstants.
NamespaceURI
);
2358
if (reader.IsStartElement(trustConstants.Elements.BinarySecret, trustConstants.
NamespaceURI
))
2446
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
, requestType)));
2510
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.RequestType, trustConstants.
NamespaceURI
, requestTypeAsStr);
2577
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Lifetime, trustConstants.
NamespaceURI
);
2604
if (!reader.IsStartElement(trustConstants.Elements.Issuer, trustConstants.
NamespaceURI
))
2607
SR.GetString(SR.ID3032, reader.LocalName, reader.NamespaceURI, trustConstants.Elements.Issuer, trustConstants.
NamespaceURI
)));
2643
writer.WriteStartElement(trustConstants.Prefix, trustConstants.Elements.Issuer, trustConstants.
NamespaceURI
);
2713
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.KeyType, trustConstants.
NamespaceURI
, incomingKeyType)));
2753
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.KeyType, trustConstants.
NamespaceURI
, keyType)));
2775
writer.WriteElementString(trustConstants.Prefix, trustConstants.Elements.KeyType, trustConstants.
NamespaceURI
, keyTypeAsStr);
2849
string base64KeyBytes = reader.ReadElementContentAsString(trustConstants.Elements.BinarySecret, trustConstants.
NamespaceURI
);
2877
writer.WriteStartElement(trustConstants.Elements.BinarySecret, trustConstants.
NamespaceURI
);