105 references to SecurityKeyType
System.IdentityModel (11)
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (5)
26const SecurityKeyType defaultKeyType = SecurityKeyType.SymmetricKey; 99public SecurityKeyType KeyType 103SecurityKeyType result; 104return (this.TryGetProperty<SecurityKeyType>(KeyTypeProperty, out result)) ? result : defaultKeyType;
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)));
System.ServiceModel (94)
System\ServiceModel\Channels\SecurityBindingElement.cs (13)
1287if (issuedTokenParameters.KeyType != SecurityKeyType.SymmetricKey) 1304if (issuedTokenParameters.KeyType == SecurityKeyType.BearerKey) 1342if (issuedTokenParameters != null && issuedTokenParameters.KeyType != SecurityKeyType.BearerKey) 1348if (issuedTokenParameters != null && (issuedTokenParameters.KeyType != SecurityKeyType.SymmetricKey && issuedTokenParameters.KeyType != SecurityKeyType.AsymmetricKey)) 1376if (issuedTokenParameters.KeyType == SecurityKeyType.BearerKey) 1417if (issuedTokenParameters != null && issuedTokenParameters.KeyType != SecurityKeyType.BearerKey) 1423if (issuedTokenParameters != null && (issuedTokenParameters.KeyType != SecurityKeyType.SymmetricKey && issuedTokenParameters.KeyType != SecurityKeyType.AsymmetricKey)) 1672if (issuedTokenParameters.KeyType == SecurityKeyType.BearerKey) 1707if (issuedTokenParameters != null && issuedTokenParameters.KeyType != SecurityKeyType.BearerKey) 1713if (issuedTokenParameters != null && (issuedTokenParameters.KeyType != SecurityKeyType.SymmetricKey && issuedTokenParameters.KeyType != SecurityKeyType.AsymmetricKey))
System\ServiceModel\Configuration\FederatedMessageSecurityOverHttpElement.cs (2)
46public SecurityKeyType IssuedKeyType 48get { return (SecurityKeyType)base[ConfigurationStrings.IssuedKeyType]; }
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (3)
70public SecurityKeyType KeyType 72get { return (SecurityKeyType)base[ConfigurationStrings.KeyType]; } 211internal IssuedSecurityTokenParameters Create(bool createTemplateOnly, SecurityKeyType templateKeyType)
System\ServiceModel\Configuration\Properties.cs (4)
1173properties.Add(new ConfigurationProperty("issuedKeyType", typeof(System.IdentityModel.Tokens.SecurityKeyType), System.IdentityModel.Tokens.SecurityKeyType.SymmetricKey, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.IdentityModel.Tokens.SecurityKeyTypeHelper)), System.Configuration.ConfigurationPropertyOptions.None)); 1549properties.Add(new ConfigurationProperty("keyType", typeof(System.IdentityModel.Tokens.SecurityKeyType), System.IdentityModel.Tokens.SecurityKeyType.SymmetricKey, null, new System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.IdentityModel.Tokens.SecurityKeyTypeHelper)), System.Configuration.ConfigurationPropertyOptions.None));
System\ServiceModel\Configuration\SecurityElementBase.cs (2)
26SecurityKeyType templateKeyType = IssuedSecurityTokenParameters.defaultKeyType; 554if (this.templateKeyType == SecurityKeyType.SymmetricKey)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (4)
586if (issuedParameters.KeyType == System.IdentityModel.Tokens.SecurityKeyType.BearerKey) 641return ((IssuedSecurityTokenParameters)tokenParameters).KeyType == SecurityKeyType.BearerKey; 737if (issuedParameters.KeyType == System.IdentityModel.Tokens.SecurityKeyType.SymmetricKey && 743else if (issuedParameters.KeyType == System.IdentityModel.Tokens.SecurityKeyType.AsymmetricKey &&
System\ServiceModel\FederatedMessageSecurityOverHttp.cs (7)
19internal const SecurityKeyType DefaultIssuedKeyType = SecurityKeyType.SymmetricKey; 30SecurityKeyType issuedKeyType; 108public SecurityKeyType IssuedKeyType 136if ((this.IssuedKeyType == SecurityKeyType.BearerKey) && 152if (this.IssuedKeyType == SecurityKeyType.SymmetricKey) 277if ((issuedTokenParameters.KeyType == SecurityKeyType.BearerKey) &&
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
132clientX509Requirement.KeyType = SecurityKeyType.AsymmetricKey; 150serverX509Requirement.KeyType = SecurityKeyType.AsymmetricKey;
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (2)
179clientX509Requirement.KeyType = SecurityKeyType.AsymmetricKey; 191serverX509Requirement.KeyType = SecurityKeyType.AsymmetricKey;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (18)
24internal const SecurityKeyType defaultKeyType = SecurityKeyType.SymmetricKey; 41SecurityKeyType keyType = defaultKeyType; 97internal protected override bool HasAsymmetricKey { get { return this.KeyType == SecurityKeyType.AsymmetricKey; } } 164public SecurityKeyType KeyType 254SecurityKeyType keyType; 653SecurityKeyType dummyOutParamForKeyType; 678internal void AddAlgorithmParameters(SecurityAlgorithmSuite algorithmSuite, SecurityStandardsManager standardsManager, SecurityKeyType issuedKeyType) 683if (this.keyType == SecurityKeyType.BearerKey) 690string signWithAlgorithm = (this.keyType == SecurityKeyType.SymmetricKey) ? algorithmSuite.DefaultSymmetricSignatureAlgorithm : algorithmSuite.DefaultAsymmetricSignatureAlgorithm; 693if (issuedKeyType == SecurityKeyType.SymmetricKey) 756if ((this.keyType == SecurityKeyType.SymmetricKey && algorithm != algorithmSuite.DefaultSymmetricSignatureAlgorithm) 757|| (this.keyType == SecurityKeyType.AsymmetricKey && algorithm != algorithmSuite.DefaultAsymmetricSignatureAlgorithm)) 765if ((this.keyType == SecurityKeyType.SymmetricKey && algorithm != algorithmSuite.DefaultEncryptionAlgorithm) 766|| (this.keyType == SecurityKeyType.AsymmetricKey && algorithm != algorithmSuite.DefaultAsymmetricKeyWrapAlgorithm)) 801if (this.keyType == SecurityKeyType.BearerKey) 821result.KeyType = SecurityKeyType.AsymmetricKey; 834if (parameters.KeyType != SecurityKeyType.AsymmetricKey)
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (17)
503SecurityKeyType keyType; 625bool TryGetKeyType(out SecurityKeyType keyType) 637keyType = SecurityKeyType.SymmetricKey; 687this.keyType = SecurityKeyType.SymmetricKey; 690if (!this.isKeySizePresentInRstProperties && this.keyType != SecurityKeyType.BearerKey) 692this.keySize = (this.keyType == SecurityKeyType.SymmetricKey) ? this.SecurityAlgorithmSuite.DefaultSymmetricKeyLength : this.defaultPublicKeySize; 839if ((this.keyType == SecurityKeyType.SymmetricKey) || (this.keyType == SecurityKeyType.BearerKey)) 853else if (this.keyType == SecurityKeyType.AsymmetricKey) 905if (this.keyType == SecurityKeyType.SymmetricKey) 910else if (this.keyType == SecurityKeyType.AsymmetricKey) 924if (this.keyType == SecurityKeyType.SymmetricKey && this.KeyEntropyMode == SecurityKeyEntropyMode.CombinedEntropy) 989if ((this.keyType == SecurityKeyType.SymmetricKey) || 990(this.keyType == SecurityKeyType.BearerKey)) 994serviceToken = rstr.GetIssuedToken(null, null, this.KeyEntropyMode, keyEntropy, null, authorizationPolicies, this.keySize, this.keyType == SecurityKeyType.BearerKey); 996else if (this.keyType == SecurityKeyType.AsymmetricKey) 1089if (this.keyType == SecurityKeyType.BearerKey)
System\ServiceModel\Security\Tokens\KerberosSecurityTokenParameters.cs (1)
45requirement.KeyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\Tokens\RsaSecurityTokenParameters.cs (1)
52requirement.KeyType = SecurityKeyType.AsymmetricKey;
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (1)
199requirement.KeyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\Tokens\SecurityContextSecurityTokenParameters.cs (1)
46requirement.KeyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\Tokens\SslSecurityTokenParameters.cs (1)
118requirement.KeyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\Tokens\SspiSecurityTokenParameters.cs (1)
98requirement.KeyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
138requirement.KeyType = SecurityKeyType.AsymmetricKey;
System\ServiceModel\Security\TrustDriver.cs (2)
165public abstract XmlElement CreateKeyTypeElement(SecurityKeyType keyType); 176public abstract bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType);
System\ServiceModel\Security\WSTrust.cs (7)
1302public override XmlElement CreateKeyTypeElement(SecurityKeyType keyType) 1304if (keyType == SecurityKeyType.SymmetricKey) 1306else if (keyType == SecurityKeyType.AsymmetricKey) 1312public override bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType) 1319keyType = SecurityKeyType.SymmetricKey; 1324keyType = SecurityKeyType.AsymmetricKey; 1328keyType = SecurityKeyType.SymmetricKey;
System\ServiceModel\Security\WSTrustDec2005.cs (4)
70public override XmlElement CreateKeyTypeElement(SecurityKeyType keyType) 72if (keyType == SecurityKeyType.BearerKey) 84public override bool TryParseKeyTypeElement(XmlElement element, out SecurityKeyType keyType) 93keyType = SecurityKeyType.BearerKey;