1 type derived from X509SecurityToken
System.IdentityModel (1)
System\IdentityModel\Tokens\X509WindowsSecurityToken.cs (1)
10
public class X509WindowsSecurityToken :
X509SecurityToken
32 instantiations of X509SecurityToken
System.IdentityModel (22)
System\IdentityModel\Configuration\IdentityConfiguration.cs (2)
325
new SecurityToken[] { new
X509SecurityToken
(this.ServiceCertificate) }), false);
355
tokens[i] = new
X509SecurityToken
(this.KnownIssuerCertificates[i]);
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (1)
62
return new
X509SecurityToken
(this.certificate);
System\IdentityModel\Tokens\IssuerTokenResolver.cs (1)
142
token = new
X509SecurityToken
( new X509Certificate2( rawDataClause.GetX509RawData() ) );
System\IdentityModel\Tokens\SamlSerializer.cs (1)
240
token = new
X509SecurityToken
(new X509Certificate2(rawDataKeyIdentifierClause.GetX509RawData()));
System\IdentityModel\Tokens\X509CertificateStoreTokenResolver.cs (4)
177
token = new
X509SecurityToken
(cert);
184
token = new
X509SecurityToken
(cert);
191
token = new
X509SecurityToken
(cert);
198
token = new
X509SecurityToken
(cert);
System\IdentityModel\Tokens\X509EncryptingCredentials.cs (4)
23
: this(new
X509SecurityToken
(certificate))
33
: this(new
X509SecurityToken
(certificate), keyWrappingAlgorithm)
43
: this(new
X509SecurityToken
(certificate), ski, SecurityAlgorithms.DefaultAsymmetricKeyWrapAlgorithm)
54
: this(new
X509SecurityToken
(certificate), ski, keyWrappingAlgorithm)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (2)
472
new
X509SecurityToken
(new X509Certificate2(binaryData)) :
473
new
X509SecurityToken
(new X509Certificate2(binaryData), wsuId);
System\IdentityModel\Tokens\X509SigningCredentials.cs (5)
26
new SecurityKeyIdentifier((new
X509SecurityToken
(certificate)).CreateKeyIdentifierClause<X509RawDataKeyIdentifierClause>()))
52
new
X509SecurityToken
(certificate),
53
new SecurityKeyIdentifier((new
X509SecurityToken
(certificate)).CreateKeyIdentifierClause<X509RawDataKeyIdentifierClause>()),
88
: this(new
X509SecurityToken
(certificate), ski, SecurityAlgorithms.DefaultAsymmetricSignatureAlgorithm, SecurityAlgorithms.DefaultDigestAlgorithm)
106
: this(new
X509SecurityToken
(certificate), ski, signatureAlgorithm, digestAlgorithm)
System\IdentityModel\X509Util.cs (2)
143
using (X509SecurityToken token = new
X509SecurityToken
(elements[1].Certificate))
151
using (X509SecurityToken token = new
X509SecurityToken
(certificate))
System.ServiceModel (10)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
685
SecurityToken token = new
X509SecurityToken
(this.clientCertificate);
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (2)
423
outOfBandTokens.Add( new
X509SecurityToken
( base.ServiceCredentials.ServiceCertificate.Certificate ) );
430
outOfBandTokens.Add( new
X509SecurityToken
( base.ServiceCredentials.IssuedTokenAuthentication.KnownCertificates[i]));
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (1)
197
resolvedToken = new
X509SecurityToken
(new X509Certificate2(((X509RawDataKeyIdentifierClause)keyIdentifierClause).GetX509RawData()));
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (2)
255
outOfBandTokens.Add(new
X509SecurityToken
(parent.ServiceCertificate.Certificate));
262
outOfBandTokens.Add(new
X509SecurityToken
(parent.IssuedTokenAuthentication.KnownCertificates[i]));
System\ServiceModel\Security\TlsnegoTokenAuthenticator.cs (1)
236
clientToken = new
X509SecurityToken
(clientCertificate);
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (1)
82
tokenToCache = new
X509SecurityToken
( x509Token.Certificate );
System\ServiceModel\Security\WSTrustChannelFactory.cs (1)
490
clientCredentialTokens.Add(new
X509SecurityToken
(factoryCredentials.ClientCertificate.Certificate));
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
160
serviceTokens.Add(new
X509SecurityToken
(serviceCreds.ServiceCertificate.Certificate));
73 references to X509SecurityToken
System.IdentityModel (32)
System\IdentityModel\SecurityTokenService.cs (2)
436
X509SecurityToken
x509SecurityToken = request.ProofEncryption.GetSecurityToken() as
X509SecurityToken
;
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (3)
71
return token is
X509SecurityToken
;
76
X509SecurityToken
x509Token = (
X509SecurityToken
)token;
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (2)
138
X509SecurityToken
x509SecurityToken = securityToken as
X509SecurityToken
;
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
363
X509SecurityToken
issuerToken = samlToken.IssuerToken as
X509SecurityToken
;
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
1002
X509SecurityToken
x509IssuerToken = samlToken.Assertion.SigningToken as
X509SecurityToken
;
System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
174
protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(
X509SecurityToken
), typeof(X509WindowsSecurityToken) }; }
457
public override Type TokenType { get { return typeof(
X509SecurityToken
); } }
766
return typeof(
X509SecurityToken
);
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
182
public override Type TokenType { get { return typeof(
X509SecurityToken
); } }
System\IdentityModel\Tokens\X509EncryptingCredentials.cs (3)
62
internal X509EncryptingCredentials(
X509SecurityToken
token)
75
internal X509EncryptingCredentials(
X509SecurityToken
token, string keyWrappingAlgorithm)
86
internal X509EncryptingCredentials(
X509SecurityToken
token, SecurityKeyIdentifier ski, string keyWrappingAlgorithm)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (11)
391
get { return typeof(
X509SecurityToken
); }
414
/// <returns>An instance of <see cref="
X509SecurityToken
"/>.</returns>
486
/// Validates an <see cref="
X509SecurityToken
"/>.
488
/// <param name="token">The <see cref="
X509SecurityToken
"/> to validate.</param>
491
/// <exception cref="ArgumentException">The token is not assignable from <see cref="
X509SecurityToken
"/>.</exception>
503
X509SecurityToken
x509Token = token as
X509SecurityToken
;
506
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(
X509SecurityToken
)));
653
X509SecurityToken
x509Token = token as
X509SecurityToken
;
656
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("token", SR.GetString(SR.ID0018, typeof(
X509SecurityToken
)));
System\IdentityModel\Tokens\X509SigningCredentials.cs (1)
118
internal X509SigningCredentials(
X509SecurityToken
token, SecurityKeyIdentifier ski, string signatureAlgorithm, string digestAlgorithm)
System\IdentityModel\X509Util.cs (2)
143
using (
X509SecurityToken
token = new X509SecurityToken(elements[1].Certificate))
151
using (
X509SecurityToken
token = new X509SecurityToken(certificate))
System.ServiceModel (41)
System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
201
X509SecurityToken
x509Token = (
X509SecurityToken
)clientCertificateToken.Token;
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (1)
186
X509SecurityToken
token = new X509SecurityToken(certificate, false);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (2)
253
X509SecurityToken
token = (
X509SecurityToken
)base.GetTokenCore(timeout);
System\ServiceModel\Channels\PeerSecurityManager.cs (2)
753
X509SecurityToken
token = tokenProvider.GetToken(ServiceDefaults.SendTimeout) as
X509SecurityToken
;
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (6)
285
X509SecurityToken
x509Token = token as
X509SecurityToken
;
290
SR.InvalidTokenProvided, this.serverTokenProvider.GetType(), typeof(
X509SecurityToken
))));
756
X509SecurityToken
clientToken;
853
this.clientToken = (
X509SecurityToken
)this.clientCertificateProvider.GetToken(timeoutHelper.RemainingTime());
1131
parent.clientToken = (
X509SecurityToken
)parent.clientCertificateProvider.EndGetToken(result);
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (2)
360
X509SecurityToken
x509SecurityToken = transportToken as
X509SecurityToken
;
System\ServiceModel\Security\ReceiveSecurityHeader.cs (4)
2076
if ((outOfBandToken is
X509SecurityToken
) && (replyToken is
X509SecurityToken
))
2078
byte[] outOfBandCertificateThumbprint = ((
X509SecurityToken
)outOfBandToken).Certificate.GetCertHash();
2079
byte[] replyCertificateThumbprint = ((
X509SecurityToken
)replyToken).Certificate.GetCertHash();
System\ServiceModel\Security\TlsnegoTokenAuthenticator.cs (5)
23
X509SecurityToken
serverToken;
71
X509SecurityToken
ValidateX509Token(SecurityToken token)
73
X509SecurityToken
result = token as
X509SecurityToken
;
232
X509SecurityToken
clientToken;
System\ServiceModel\Security\TlsnegoTokenProvider.cs (8)
56
static
X509SecurityToken
ValidateToken(SecurityToken token)
58
X509SecurityToken
result = token as
X509SecurityToken
;
66
SspiNegotiationTokenProviderState CreateTlsSspiState(
X509SecurityToken
token)
148
X509SecurityToken
clientToken;
176
X509SecurityToken
certToken = new X509SecurityToken(serverCert, false);
247
X509SecurityToken
clientToken = ValidateToken(token);
262
X509SecurityToken
clientToken = TlsnegoTokenProvider.ValidateToken(token);
System\ServiceModel\Security\Tokens\SecurityTokenProviderContainer.cs (2)
51
X509SecurityToken
token = this.tokenProvider.GetToken(timeout) as
X509SecurityToken
;
System\ServiceModel\Security\Tokens\X509SecurityTokenParameters.cs (2)
87
X509SecurityToken
x509Token = token as
X509SecurityToken
;
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (2)
78
X509SecurityToken
x509Token = token as
X509SecurityToken
;
System\ServiceModel\Security\WSSecurityJan2004.cs (3)
612
protected override Type[] GetTokenTypesCore() { return new Type[] { typeof(
X509SecurityToken
), typeof(X509WindowsSecurityToken) }; }
632
X509SecurityToken
x509Token = token as
X509SecurityToken
;