1 write to WSTrustTokenParameters
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
61WSTrustTokenParameters = issuedSecurityTokenParameters as WSTrustTokenParameters;
21 references to WSTrustTokenParameters
System.ServiceModel.Federation (21)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (21)
52/// <param name="tokenRequirement">the <see cref="SecurityTokenRequirement"/> that must contain a <see cref="WSTrustTokenParameters"/> as the <see cref="IssuedSecurityTokenParameters"/> property.</param> 54/// <exception cref="ArgumentException">thrown if <see cref="SecurityTokenRequirement.GetProperty{TValue}(string)"/> (IssuedSecurityTokenParameters) is not a <see cref="WSTrustTokenParameters"/>.</exception> 62if (WSTrustTokenParameters == null) 96if (WSTrustTokenParameters.CacheIssuedTokens) 117/// Creates a <see cref="WsTrustRequest"/> from the <see cref="WSTrustTokenParameters"/>. 127switch (WSTrustTokenParameters.KeyType) 142throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new NotSupportedException(LogHelper.FormatInvariant("KeyType is not supported: {0}", WSTrustTokenParameters.KeyType)), EventLevel.Error); 146if (WSTrustTokenParameters.KeyType != SecurityKeyType.BearerKey && 174if (WSTrustTokenParameters.Claims != null) 177foreach (ClaimType claimType in WSTrustTokenParameters.Claims.ClaimTypes) 187trustRequest.Claims = new Claims(WSTrustTokenParameters.Claims.Dialect, claimTypes); 190foreach (XmlElement parameter in WSTrustTokenParameters.AdditionalRequestParameters) 212if (WSTrustTokenParameters.CacheIssuedTokens && CachedResponse != null) 348get => WSTrustTokenParameters?.IssuerBinding; 369long effectiveInterval = (long)((WSTrustTokenParameters.IssuedTokenRenewalThresholdPercentage / (double)100) * interval); 370DateTime effectiveExpiration = AddTicks(fromTime, Math.Min(effectiveInterval, WSTrustTokenParameters.MaxIssuedTokenCachingTime.Ticks)); 424MessageSecurityVersion messageSecurityVersion = WSTrustTokenParameters.MessageSecurityVersion; 426messageSecurityVersion = WSTrustTokenParameters.DefaultMessageSecurityVersion; 476RequestContext = string.IsNullOrEmpty(WSTrustTokenParameters.RequestContext) ? Guid.NewGuid().ToString() : WSTrustTokenParameters.RequestContext; 477var channelFactory = new ChannelFactory<IRequestChannel>(IssuerBinding, WSTrustTokenParameters.IssuerAddress);