76 references to WSSecurity10Constants
System.IdentityModel (76)
System\IdentityModel\Protocols\WSTrust\BinaryExchange.cs (1)
25
: this( binaryData, valueType, new Uri(
WSSecurity10Constants
.EncodingTypes.Base64 ) )
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (8)
2235
case
WSSecurity10Constants
.EncodingTypes.Base64:
2241
case
WSSecurity10Constants
.EncodingTypes.HexBinary:
2249
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3215, encodingType, reader.LocalName, reader.NamespaceURI, string.Format(CultureInfo.InvariantCulture, "({0}, {1})",
WSSecurity10Constants
.EncodingTypes.Base64,
WSSecurity10Constants
.EncodingTypes.HexBinary))));
2276
case
WSSecurity10Constants
.EncodingTypes.Base64:
2282
case
WSSecurity10Constants
.EncodingTypes.HexBinary:
2294
string.Format(CultureInfo.InvariantCulture, "({0}, {1})",
WSSecurity10Constants
.EncodingTypes.Base64,
WSSecurity10Constants
.EncodingTypes.HexBinary))));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (19)
31
using WSSE = System.IdentityModel.
WSSecurity10Constants
;
517
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID3061,
WSSE
.Elements.SecurityTokenReference,
WSSE
.Namespace));
571
if (reader.IsStartElement(
WSSE
.Elements.Reference,
WSSE
.Namespace))
577
if (!reader.IsStartElement(
WSSE
.Elements.KeyIdentifier,
WSSE
.Namespace))
579
reader.ReadStartElement(
WSSE
.Elements.KeyIdentifier,
WSSE
.Namespace);
583
value = reader.GetAttribute(
WSSE
.Attributes.ValueType);
586
throw DiagnosticUtility.ThrowHelperXml(reader, SR.GetString(SR.ID0001,
WSSE
.Attributes.ValueType,
WSSE
.Elements.KeyIdentifier));
689
writer.WriteStartElement(
WSSE
.Elements.SecurityTokenReference,
WSSE
.Namespace);
711
writer.WriteStartElement(
WSSE
.Elements.KeyIdentifier,
WSSE
.Namespace);
714
writer.WriteAttributeString(
WSSE
.Attributes.ValueType, TokenProfile11ValueType);
854
if (!reader.IsStartElement(
WSSE
.Elements.SecurityTokenReference,
WSSE
.Namespace))
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (25)
53
return reader.IsStartElement(
WSSecurity10Constants
.Elements.UsernameToken,
WSSecurity10Constants
.Namespace);
109
WSSecurity10Constants
.Elements.Username,
110
WSSecurity10Constants
.Namespace,
122
reader.ReadStartElement(
WSSecurity10Constants
.Elements.UsernameToken,
WSSecurity10Constants
.Namespace);
125
if (reader.IsStartElement(
WSSecurity10Constants
.Elements.Username,
WSSecurity10Constants
.Namespace))
129
else if (reader.IsStartElement(
WSSecurity10Constants
.Elements.Password,
WSSecurity10Constants
.Namespace))
131
string type = reader.GetAttribute(
WSSecurity10Constants
.Attributes.Type, null);
132
if (!string.IsNullOrEmpty(type) && !StringComparer.Ordinal.Equals(type,
WSSecurity10Constants
.UPTokenPasswordTextValue))
134
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4059, type,
WSSecurity10Constants
.UPTokenPasswordTextValue)));
139
else if (reader.IsStartElement(
WSSecurity10Constants
.Elements.Nonce,
WSSecurity10Constants
.Namespace))
151
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(SR.GetString(SR.ID4060, reader.LocalName, reader.NamespaceURI,
WSSecurity10Constants
.Elements.UsernameToken,
WSSecurity10Constants
.Namespace)));
195
WSSecurity10Constants
.Elements.UsernameToken,
196
WSSecurity10Constants
.Namespace
209
WSSecurity10Constants
.Elements.Username,
210
WSSecurity10Constants
.Namespace,
218
WSSecurity10Constants
.Elements.Password,
219
WSSecurity10Constants
.Namespace
223
WSSecurity10Constants
.Attributes.Type,
225
WSSecurity10Constants
.UPTokenPasswordTextValue
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (23)
356
if (reader.IsStartElement(
WSSecurity10Constants
.Elements.BinarySecurityToken,
WSSecurity10Constants
.Namespace))
358
string valueTypeUri = reader.GetAttribute(
WSSecurity10Constants
.Attributes.ValueType, null);
359
return StringComparer.Ordinal.Equals(valueTypeUri,
WSSecurity10Constants
.X509TokenType);
427
if (!dicReader.IsStartElement(
WSSecurity10Constants
.Elements.BinarySecurityToken,
WSSecurity10Constants
.Namespace))
433
WSSecurity10Constants
.Elements.BinarySecurityToken,
434
WSSecurity10Constants
.Namespace,
439
string valueTypeUri = dicReader.GetAttribute(
WSSecurity10Constants
.Attributes.ValueType, null);
441
if (!StringComparer.Ordinal.Equals(valueTypeUri,
WSSecurity10Constants
.X509TokenType))
447
WSSecurity10Constants
.Elements.BinarySecurityToken,
448
WSSecurity10Constants
.Namespace,
449
WSSecurity10Constants
.Attributes.ValueType,
450
WSSecurity10Constants
.X509TokenType,
455
string encoding = dicReader.GetAttribute(
WSSecurity10Constants
.Attributes.EncodingType, null);
458
if (encoding == null || StringComparer.Ordinal.Equals(encoding,
WSSecurity10Constants
.Base64EncodingType))
462
else if (StringComparer.Ordinal.Equals(encoding,
WSSecurity10Constants
.HexBinaryEncodingType))
659
writer.WriteStartElement(
WSSecurity10Constants
.Elements.BinarySecurityToken,
WSSecurity10Constants
.Namespace);
665
writer.WriteAttributeString(
WSSecurity10Constants
.Attributes.ValueType, null,
WSSecurity10Constants
.X509TokenType);
666
writer.WriteAttributeString(
WSSecurity10Constants
.Attributes.EncodingType,
WSSecurity10Constants
.Base64EncodingType);