1 write to WSTrustTokenParameters
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
59WSTrustTokenParameters = issuedSecurityTokenParameters as WSTrustTokenParameters;
21 references to WSTrustTokenParameters
System.ServiceModel.Federation (21)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (21)
50/// <param name="tokenRequirement">the <see cref="SecurityTokenRequirement"/> that must contain a <see cref="WSTrustTokenParameters"/> as the <see cref="IssuedSecurityTokenParameters"/> property.</param> 52/// <exception cref="ArgumentException">thrown if <see cref="SecurityTokenRequirement.GetProperty{TValue}(string)"/> (IssuedSecurityTokenParameters) is not a <see cref="WSTrustTokenParameters"/>.</exception> 60if (WSTrustTokenParameters == null) 94if (WSTrustTokenParameters.CacheIssuedTokens) 115/// Creates a <see cref="WsTrustRequest"/> from the <see cref="WSTrustTokenParameters"/>. 125switch (WSTrustTokenParameters.KeyType) 140throw new NotSupportedException(SR.Format(SR.KeyTypeNotSupported, WSTrustTokenParameters.KeyType)); 144if (WSTrustTokenParameters.KeyType != SecurityKeyType.BearerKey && 172if (WSTrustTokenParameters.Claims != null) 175foreach (ClaimType claimType in WSTrustTokenParameters.Claims.ClaimTypes) 185trustRequest.Claims = new Claims(WSTrustTokenParameters.Claims.Dialect, claimTypes); 188foreach (XmlElement parameter in WSTrustTokenParameters.AdditionalRequestParameters) 198if (WSTrustTokenParameters.CacheIssuedTokens && CachedResponse != null) 334get => WSTrustTokenParameters?.IssuerBinding; 355long effectiveInterval = (long)((WSTrustTokenParameters.IssuedTokenRenewalThresholdPercentage / (double)100) * interval); 356DateTime effectiveExpiration = AddTicks(fromTime, Math.Min(effectiveInterval, WSTrustTokenParameters.MaxIssuedTokenCachingTime.Ticks)); 409MessageSecurityVersion messageSecurityVersion = WSTrustTokenParameters.MessageSecurityVersion; 411messageSecurityVersion = WSTrustTokenParameters.DefaultMessageSecurityVersion; 461RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext; 462var channelFactory = new ChannelFactory<IRequestChannel>(IssuerBinding, WSTrustTokenParameters.IssuerAddress);