24 references to KeyTypes
System.IdentityModel (21)
System\IdentityModel\Protocols\WSTrust\RequestSecurityToken.cs (3)
62
if (keyType ==
KeyTypes
.Symmetric)
67
else if (keyType ==
KeyTypes
.Bearer)
71
else if (keyType ==
KeyTypes
.Asymmetric)
System\IdentityModel\Protocols\WSTrust\RequestSecurityTokenResponse.cs (1)
53
if (message.KeySizeInBits > 0 && StringComparer.Ordinal.Equals(message.KeyType,
KeyTypes
.Symmetric))
System\IdentityModel\Protocols\WSTrust\WSTrustRequestSerializer.cs (1)
81
StringComparer.Ordinal.Equals(requestSecurityToken.KeyType,
KeyTypes
.Asymmetric) &&
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (6)
2718
return
KeyTypes
.Symmetric;
2722
return
KeyTypes
.Asymmetric;
2726
return
KeyTypes
.Bearer;
2758
if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Asymmetric) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Asymmetric))
2762
else if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Symmetric) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Symmetric))
2766
else if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Bearer) || StringComparer.Ordinal.Equals(keyType, trustConstants.KeyTypes.Bearer))
System\IdentityModel\SecurityTokenService.cs (10)
351
string keyType = (string.IsNullOrEmpty(request.KeyType)) ?
KeyTypes
.Symmetric : request.KeyType;
354
if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Asymmetric))
366
else if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Symmetric))
408
else if (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Bearer))
1077
if (StringComparer.Ordinal.Equals(request.KeyType,
KeyTypes
.Bearer) && request.KeySizeInBits.HasValue && (request.KeySizeInBits.Value != 0))
1088
request.KeyType = (string.IsNullOrEmpty(request.KeyType)) ?
KeyTypes
.Symmetric : request.KeyType;
1090
if (StringComparer.Ordinal.Equals(request.KeyType,
KeyTypes
.Symmetric))
1111
return (StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Symmetric)
1112
|| StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Asymmetric)
1113
|| StringComparer.Ordinal.Equals(keyType,
KeyTypes
.Bearer));
System.ServiceModel (3)
System\ServiceModel\Security\WSTrustChannel.cs (3)
555
|| keyType ==
KeyTypes
.Symmetric
562
|| keyType ==
KeyTypes
.Asymmetric)
568
|| keyType ==
KeyTypes
.Bearer)