8 writes to KeySizeInBits
System.IdentityModel (8)
System\IdentityModel\Protocols\WSTrust\RequestSecurityToken.cs (3)
65KeySizeInBits = SecurityTokenServiceConfiguration.DefaultKeySizeInBitsConstant; 69KeySizeInBits = 0; 73KeySizeInBits = 1024;
System\IdentityModel\Protocols\WSTrust\RequestSecurityTokenResponse.cs (1)
55KeySizeInBits = message.KeySizeInBits;
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
347rst.KeySizeInBits = int.Parse(reader.ReadElementContentAsString(), CultureInfo.InvariantCulture); 1451rstr.KeySizeInBits = Convert.ToInt32(reader.ReadElementContentAsString(), CultureInfo.InvariantCulture);
System\IdentityModel\SecurityTokenService.cs (1)
1104request.KeySizeInBits = _securityTokenServiceConfiguration.DefaultSymmetricKeySizeInBits;
System\IdentityModel\Tokens\SymmetricProofDescriptor.cs (1)
248response.KeySizeInBits = _keySizeInBits;
19 references to KeySizeInBits
System.IdentityModel (16)
System\IdentityModel\Protocols\WSTrust\RequestSecurityTokenResponse.cs (2)
53if (message.KeySizeInBits > 0 && StringComparer.Ordinal.Equals(message.KeyType, KeyTypes.Symmetric)) 55KeySizeInBits = message.KeySizeInBits;
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (6)
350if (rst.KeySizeInBits == null) 763if (rst.KeySizeInBits.HasValue) 765requestSerializer.WriteXmlElement(writer, trustConstants.Elements.KeySize, rst.KeySizeInBits, rst, context); 1454if (rstr.KeySizeInBits == null) 1750if (rstr.KeySizeInBits.HasValue) 1752responseSerializer.WriteXmlElement(writer, trustConstants.Elements.KeySize, rstr.KeySizeInBits, rstr, context);
System\IdentityModel\SecurityTokenService.cs (8)
390if (request.KeySizeInBits.HasValue) 394result = new SymmetricProofDescriptor(request.KeySizeInBits.Value, targetWrappingCredentials, requestorWrappingCredentials, 399result = new SymmetricProofDescriptor(request.KeySizeInBits.Value, targetWrappingCredentials, 1077if (StringComparer.Ordinal.Equals(request.KeyType, KeyTypes.Bearer) && request.KeySizeInBits.HasValue && (request.KeySizeInBits.Value != 0)) 1095if (request.KeySizeInBits.HasValue) 1097if (request.KeySizeInBits.Value > _securityTokenServiceConfiguration.DefaultMaxSymmetricKeySizeInBits) 1099throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidRequestException(SR.GetString(SR.ID2056, request.KeySizeInBits.Value, _securityTokenServiceConfiguration.DefaultMaxSymmetricKeySizeInBits)));
System.ServiceModel (3)
System\ServiceModel\Security\WSTrustChannel.cs (3)
607int keySize = request.KeySizeInBits ?? WSTrustChannel.DefaultKeySizeInBits; 608if (response.KeySizeInBits.HasValue) 610keySize = response.KeySizeInBits.Value;