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