63 references to SecurityKeyType
dotnet-svcutil-lib (63)
CodeDomFixup\System.ServiceModel.FederationCodeGen.cs (1)
72
public static readonly System.IdentityModel.Tokens.
SecurityKeyType
DefaultSecurityKeyType = default;
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (5)
25
private const
SecurityKeyType
defaultKeyType =
SecurityKeyType
.SymmetricKey;
98
public
SecurityKeyType
KeyType
102
SecurityKeyType
result;
103
return (this.TryGetProperty<
SecurityKeyType
>(KeyTypeProperty, out result)) ? result : defaultKeyType;
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyType.cs (6)
19
internal static bool IsDefined(
SecurityKeyType
value)
21
return (value ==
SecurityKeyType
.SymmetricKey
22
|| value ==
SecurityKeyType
.AsymmetricKey
23
|| value ==
SecurityKeyType
.BearerKey);
26
internal static void Validate(
SecurityKeyType
value)
31
typeof(
SecurityKeyType
)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (13)
869
if (issuedTokenParameters.KeyType !=
SecurityKeyType
.SymmetricKey)
886
if (issuedTokenParameters.KeyType ==
SecurityKeyType
.BearerKey)
924
if (issuedTokenParameters != null && issuedTokenParameters.KeyType !=
SecurityKeyType
.BearerKey)
930
if (issuedTokenParameters != null && (issuedTokenParameters.KeyType !=
SecurityKeyType
.SymmetricKey && issuedTokenParameters.KeyType !=
SecurityKeyType
.AsymmetricKey))
958
if (issuedTokenParameters.KeyType ==
SecurityKeyType
.BearerKey)
999
if (issuedTokenParameters != null && issuedTokenParameters.KeyType !=
SecurityKeyType
.BearerKey)
1005
if (issuedTokenParameters != null && (issuedTokenParameters.KeyType !=
SecurityKeyType
.SymmetricKey && issuedTokenParameters.KeyType !=
SecurityKeyType
.AsymmetricKey))
1254
if (issuedTokenParameters.KeyType ==
SecurityKeyType
.BearerKey)
1289
if (issuedTokenParameters != null && issuedTokenParameters.KeyType !=
SecurityKeyType
.BearerKey)
1295
if (issuedTokenParameters != null && (issuedTokenParameters.KeyType !=
SecurityKeyType
.SymmetricKey && issuedTokenParameters.KeyType !=
SecurityKeyType
.AsymmetricKey))
FrameworkFork\System.ServiceModel\System\ServiceModel\Configuration\SecurityElementBase.cs (1)
23
private
SecurityKeyType
_templateKeyType = IssuedSecurityTokenParameters.defaultKeyType;
FrameworkFork\System.ServiceModel\System\ServiceModel\FederatedMessageSecurityOverHttp.cs (7)
20
internal const
SecurityKeyType
DefaultIssuedKeyType =
SecurityKeyType
.SymmetricKey;
33
private
SecurityKeyType
_issuedKeyType;
111
public
SecurityKeyType
IssuedKeyType
139
if ((this.IssuedKeyType ==
SecurityKeyType
.BearerKey) &&
155
if (IssuedKeyType ==
SecurityKeyType
.SymmetricKey)
280
if ((issuedTokenParameters.KeyType ==
SecurityKeyType
.BearerKey) &&
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (17)
24
internal const
SecurityKeyType
defaultKeyType =
SecurityKeyType
.SymmetricKey;
41
private
SecurityKeyType
_keyType = defaultKeyType;
97
internal protected override bool HasAsymmetricKey { get { return this.KeyType ==
SecurityKeyType
.AsymmetricKey; } }
164
public
SecurityKeyType
KeyType
245
SecurityKeyType
keyType;
381
internal void AddAlgorithmParameters(SecurityAlgorithmSuite algorithmSuite, SecurityStandardsManager standardsManager,
SecurityKeyType
issuedKeyType)
386
if (this._keyType ==
SecurityKeyType
.BearerKey)
393
string signWithAlgorithm = (this._keyType ==
SecurityKeyType
.SymmetricKey) ? algorithmSuite.DefaultSymmetricSignatureAlgorithm : algorithmSuite.DefaultAsymmetricSignatureAlgorithm;
396
if (issuedKeyType ==
SecurityKeyType
.SymmetricKey)
459
if ((this._keyType ==
SecurityKeyType
.SymmetricKey && algorithm != algorithmSuite.DefaultSymmetricSignatureAlgorithm)
460
|| (this._keyType ==
SecurityKeyType
.AsymmetricKey && algorithm != algorithmSuite.DefaultAsymmetricSignatureAlgorithm))
468
if ((this._keyType ==
SecurityKeyType
.SymmetricKey && algorithm != algorithmSuite.DefaultEncryptionAlgorithm)
469
|| (this._keyType ==
SecurityKeyType
.AsymmetricKey && algorithm != algorithmSuite.DefaultAsymmetricKeyWrapAlgorithm))
504
if (this._keyType ==
SecurityKeyType
.BearerKey)
524
result.KeyType =
SecurityKeyType
.AsymmetricKey;
537
if (parameters.KeyType !=
SecurityKeyType
.AsymmetricKey)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TrustDriver.cs (2)
157
public abstract XmlElement CreateKeyTypeElement(
SecurityKeyType
keyType);
168
public abstract bool TryParseKeyTypeElement(XmlElement element, out
SecurityKeyType
keyType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (7)
697
public override XmlElement CreateKeyTypeElement(
SecurityKeyType
keyType)
699
if (keyType ==
SecurityKeyType
.SymmetricKey)
701
else if (keyType ==
SecurityKeyType
.AsymmetricKey)
707
public override bool TryParseKeyTypeElement(XmlElement element, out
SecurityKeyType
keyType)
714
keyType =
SecurityKeyType
.SymmetricKey;
719
keyType =
SecurityKeyType
.AsymmetricKey;
723
keyType =
SecurityKeyType
.SymmetricKey;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrustDec2005.cs (4)
69
public override XmlElement CreateKeyTypeElement(
SecurityKeyType
keyType)
71
if (keyType ==
SecurityKeyType
.BearerKey)
83
public override bool TryParseKeyTypeElement(XmlElement element, out
SecurityKeyType
keyType)
92
keyType =
SecurityKeyType
.BearerKey;