81 references to WSTrust13Constants
System.IdentityModel (81)
System\IdentityModel\Protocols\WSTrust\WSTrust13ConstantsAdapter.cs (26)
20NamespaceURI = WSTrust13Constants.NamespaceURI; 21Prefix = WSTrust13Constants.Prefix; 104private string keyWrapAlgorithm = WSTrust13Constants.ElementNames.KeyWrapAlgorithm; 105private string secondaryParameters = WSTrust13Constants.ElementNames.SecondaryParameters; 106private string requestSecurityTokenResponseCollection = WSTrust13Constants.ElementNames.RequestSecurityTokenResponseCollection; 107private string validateTarget = WSTrust13Constants.ElementNames.ValidateTarget; 134Cancel = WSTrust13Constants.Actions.Cancel; 135CancelResponse = WSTrust13Constants.Actions.CancelResponse; 136Issue = WSTrust13Constants.Actions.Issue; 137IssueResponse = WSTrust13Constants.Actions.IssueResponse; 138Renew = WSTrust13Constants.Actions.Renew; 139RenewResponse = WSTrust13Constants.Actions.RenewResponse; 140RequestSecurityContextToken = WSTrust13Constants.Actions.RequestSecurityContextToken; 141RequestSecurityContextTokenCancel = WSTrust13Constants.Actions.RequestSecurityContextTokenCancel; 142RequestSecurityContextTokenResponse = WSTrust13Constants.Actions.RequestSecurityContextTokenResponse; 143RequestSecurityContextTokenResponseCancel = WSTrust13Constants.Actions.RequestSecurityContextTokenResponseCancel; 144Validate = WSTrust13Constants.Actions.Validate; 145ValidateResponse = WSTrust13Constants.Actions.ValidateResponse; 153Psha1 = WSTrust13Constants.ComputedKeyAlgorithms.PSHA1; 161Asymmetric = WSTrust13Constants.KeyTypes.Asymmetric; 162Bearer = WSTrust13Constants.KeyTypes.Bearer; 163Symmetric = WSTrust13Constants.KeyTypes.Symmetric; 171Cancel = WSTrust13Constants.RequestTypes.Cancel; 172Issue = WSTrust13Constants.RequestTypes.Issue; 173Renew = WSTrust13Constants.RequestTypes.Renew; 174Validate = WSTrust13Constants.RequestTypes.Validate;
System\IdentityModel\Protocols\WSTrust\WSTrust13RequestSerializer.cs (36)
67if (reader.IsStartElement(WSTrust13Constants.ElementNames.SecondaryParameters, WSTrust13Constants.NamespaceURI)) 73if (reader.IsStartElement(WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI)) 78throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm))); 84if (reader.IsStartElement(WSTrust13Constants.ElementNames.ValidateTarget, WSTrust13Constants.NamespaceURI)) 135throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, rst.KeyWrapAlgorithm))); 138this.WriteXmlElement(writer, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, rst.KeyWrapAlgorithm, rst, context); 143this.WriteXmlElement(writer, WSTrust13Constants.ElementNames.SecondaryParameters, rst.SecondaryParameters, rst, context); 148this.WriteXmlElement(writer, WSTrust13Constants.ElementNames.ValidateTarget, rst.ValidateTarget, rst, context); 212if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.SecondaryParameters)) 218throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2064, WSTrust13Constants.ElementNames.SecondaryParameters))); 227writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.ElementNames.SecondaryParameters, WSTrust13Constants.NamespaceURI); 243if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.KeyWrapAlgorithm)) 245writer.WriteElementString(WSTrust13Constants.Prefix, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, (string)elementValue); 249if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.ValidateTarget)) 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("elementValue", SR.GetString(SR.ID3222, WSTrust13Constants.ElementNames.ValidateTarget, WSTrust13Constants.NamespaceURI, typeof(SecurityTokenElement), elementValue)); 258writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.ElementNames.ValidateTarget, WSTrust13Constants.NamespaceURI); 292return reader.IsStartElement(WSTrust13Constants.ElementNames.RequestSecurityToken, WSTrust13Constants.NamespaceURI); 321WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI)) 330WSTrust13Constants.ElementNames.KeyWrapAlgorithm, 331WSTrust13Constants.NamespaceURI, 336WSTrust13Constants.ElementNames.SecondaryParameters, WSTrust13Constants.NamespaceURI))
System\IdentityModel\Protocols\WSTrust\WSTrust13ResponseSerializer.cs (18)
36if (reader.IsStartElement(WSTrust13Constants.ElementNames.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI)) 38reader.ReadStartElement(WSTrust13Constants.ElementNames.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI); 78if (reader.IsStartElement(WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI)) 117this.WriteXmlElement(writer, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, rstr.KeyWrapAlgorithm, rstr, context); 148writer.WriteStartElement(WSTrust13Constants.Prefix, WSTrust13Constants.ElementNames.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI); 191if (StringComparer.Ordinal.Equals(elementName, WSTrust13Constants.ElementNames.KeyWrapAlgorithm)) 193writer.WriteElementString(WSTrust13Constants.Prefix, WSTrust13Constants.ElementNames.KeyWrapAlgorithm, WSTrust13Constants.NamespaceURI, (string)elementValue); 217return reader.IsStartElement(WSTrust13Constants.ElementNames.RequestSecurityTokenResponseCollection, WSTrust13Constants.NamespaceURI) 218|| reader.IsStartElement(WSTrust13Constants.ElementNames.RequestSecurityTokenResponse, WSTrust13Constants.NamespaceURI);
System\IdentityModel\Protocols\WSTrust\WSTrustConstantsAdapter.cs (1)
111else if (StringComparer.Ordinal.Equals(ns, WSTrust13Constants.NamespaceURI))