62 references to SecurityTokenTypes
System.IdentityModel (11)
System\IdentityModel\Configuration\SecurityTokenServiceConfiguration.cs (2)
9
using SecurityTokenTypes = System.IdentityModel.Tokens.
SecurityTokenTypes
;
27
string _defaultTokenType =
SecurityTokenTypes
.SamlTokenProfile11;
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
21
static string[] _tokenTypeIdentifiers = new string[] {
SecurityTokenTypes
.Kerberos };
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
19
static string[] _tokenTypeIdentifiers = new string[] {
SecurityTokenTypes
.Rsa };
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (3)
46
private static string[] tokenTypeIdentifiers = new string[] {
SecurityTokenTypes
.Saml2TokenProfile11,
SecurityTokenTypes
.OasisWssSaml2TokenProfile11 };
708
writer.WriteAttributeString(WSSE11.Attributes.TokenType, WSSE11.Namespace,
SecurityTokenTypes
.OasisWssSaml2TokenProfile11);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
51
static string[] _tokenTypeIdentifiers = new string[] {
SecurityTokenTypes
.SamlTokenProfile11,
SecurityTokenTypes
.OasisWssSamlTokenProfile11 };
System\IdentityModel\Tokens\UserNameSecurityTokenHandler.cs (1)
83
return new string[] {
SecurityTokenTypes
.UserName };
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
482
return new string[] {
SecurityTokenTypes
.X509Certificate };
System.ServiceModel (51)
System\ServiceModel\Channels\MsmqChannelFactoryBase.cs (1)
166
x509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (1)
165
x509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
System\ServiceModel\Channels\PeerSecurityHelpers.cs (1)
304
if (requirement.TokenType ==
SecurityTokenTypes
.X509Certificate && requirement.KeyUsage == SecurityKeyUsage.Signature)
System\ServiceModel\Channels\PeerSecurityManager.cs (6)
404
X509SecurityTokenAuthenticator auth = tokenManager.CreateSecurityTokenAuthenticator(PeerSecurityCredentialsManager.PeerClientSecurityTokenManager.CreateRequirement(
SecurityTokenTypes
.X509Certificate, true), out resolver) as X509SecurityTokenAuthenticator;
722
ServiceModelSecurityTokenRequirement req = PeerClientSecurityTokenManager.CreateRequirement(
SecurityTokenTypes
.UserName);
749
ServiceModelSecurityTokenRequirement req = PeerClientSecurityTokenManager.CreateRequirement(
SecurityTokenTypes
.X509Certificate);
883
ServiceModelSecurityTokenRequirement requirement = CreateRequirement(
SecurityTokenTypes
.UserName);
978
return ((requirement != null) && (requirement.TokenType ==
SecurityTokenTypes
.UserName));
983
return (requirement != null && requirement.TokenType ==
SecurityTokenTypes
.X509Certificate);
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
89
serverCertRequirement.TokenType =
SecurityTokenTypes
.X509Certificate;
769
serverCertRequirement.TokenType =
SecurityTokenTypes
.X509Certificate;
783
clientCertRequirement.TokenType =
SecurityTokenTypes
.X509Certificate;
System\ServiceModel\Channels\TransportSecurityHelpers.cs (3)
430
clientAuthRequirement.TokenType =
SecurityTokenTypes
.X509Certificate;
446
certificateTokenRequirement.TokenType =
SecurityTokenTypes
.X509Certificate;
511
usernameRequirement.TokenType =
SecurityTokenTypes
.UserName;
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (10)
125
clientX509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
145
serverX509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
534
if (tokenRequirement is RecipientServiceModelSecurityTokenRequirement && tokenRequirement.TokenType ==
SecurityTokenTypes
.X509Certificate && tokenRequirement.KeyUsage == SecurityKeyUsage.Exchange)
559
else if (tokenType ==
SecurityTokenTypes
.X509Certificate)
574
else if (tokenType ==
SecurityTokenTypes
.Kerberos)
581
else if (tokenType ==
SecurityTokenTypes
.UserName)
726
else if (tokenType ==
SecurityTokenTypes
.X509Certificate)
743
else if (tokenType ==
SecurityTokenTypes
.Rsa)
747
else if (tokenType ==
SecurityTokenTypes
.Kerberos)
759
else if ((tokenRequirement is RecipientServiceModelSecurityTokenRequirement) && tokenRequirement.TokenType ==
SecurityTokenTypes
.X509Certificate)
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (10)
142
if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.UserName ) )
152
else if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.Kerberos ) )
156
else if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.Rsa ) )
166
else if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.X509Certificate ) )
176
else if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.SamlTokenProfile11 ) ||
177
StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.OasisWssSamlTokenProfile11 ) )
195
else if ( StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.Saml2TokenProfile11 ) ||
196
StringComparer.Ordinal.Equals( tokenType,
SecurityTokenTypes
.OasisWssSaml2TokenProfile11 ) )
510
SamlSecurityTokenHandler saml11SecurityTokenHandler = _securityTokenHandlerCollection[
SecurityTokenTypes
.SamlTokenProfile11] as SamlSecurityTokenHandler;
511
Saml2SecurityTokenHandler saml2SecurityTokenHandler = _securityTokenHandlerCollection[
SecurityTokenTypes
.Saml2TokenProfile11] as Saml2SecurityTokenHandler;
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (12)
176
clientX509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
188
serverX509Requirement.TokenType =
SecurityTokenTypes
.X509Certificate;
332
if (tokenType ==
SecurityTokenTypes
.X509Certificate && tokenRequirement.KeyUsage == SecurityKeyUsage.Exchange)
343
if (tokenType ==
SecurityTokenTypes
.X509Certificate)
347
else if (tokenType ==
SecurityTokenTypes
.Kerberos)
352
else if (tokenType ==
SecurityTokenTypes
.UserName)
371
else if (tokenType ==
SecurityTokenTypes
.Rsa)
391
else if ((tokenType ==
SecurityTokenTypes
.Saml)
409
if (tokenType ==
SecurityTokenTypes
.X509Certificate)
448
if (tokenType ==
SecurityTokenTypes
.X509Certificate)
503
if (tokenType ==
SecurityTokenTypes
.X509Certificate
512
else if (tokenType ==
SecurityTokenTypes
.Kerberos || tokenType == ServiceModelSecurityTokenTypes.Spnego)
System\ServiceModel\Security\Tokens\KerberosSecurityTokenParameters.cs (1)
44
requirement.TokenType =
SecurityTokenTypes
.Kerberos;
System\ServiceModel\Security\Tokens\RsaSecurityTokenParameters.cs (1)
50
requirement.TokenType =
SecurityTokenTypes
.Rsa;
System\ServiceModel\Security\Tokens\UserNameSecurityTokenParameters.cs (1)
44
requirement.TokenType =
SecurityTokenTypes
.UserName;
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (1)
136
requirement.TokenType =
SecurityTokenTypes
.X509Certificate;