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