8 types derived from X509CertificateValidator
System.IdentityModel (6)
System\IdentityModel\Selectors\X509CertificateValidator.cs (4)
101
class NoneX509CertificateValidator :
X509CertificateValidator
110
class PeerTrustValidator :
X509CertificateValidator
188
class ChainTrustValidator :
X509CertificateValidator
240
class PeerOrChainTrustValidator :
X509CertificateValidator
System\IdentityModel\Tokens\X509NTAuthChainTrustValidator.cs (1)
16
public class X509NTAuthChainTrustValidator :
X509CertificateValidator
System\IdentityModel\X509CertificateValidatorEx.cs (1)
19
internal class X509CertificateValidatorEx :
X509CertificateValidator
System.ServiceModel (2)
System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (2)
207
private class ClientChainTrustValidator :
X509CertificateValidator
301
private class ClientPeerOrChainTrustValidator :
X509CertificateValidator
126 references to X509CertificateValidator
System.IdentityModel (51)
System\IdentityModel\Configuration\IdentityConfiguration.cs (3)
173
public
X509CertificateValidator
CertificateValidator
587
handlerConfiguration.CertificateValidator = CustomTypeElement.Resolve<
X509CertificateValidator
>(element.CertificateValidation.CertificateValidator);
689
handlerConfiguration.CertificateValidator = CustomTypeElement.Resolve<
X509CertificateValidator
>(element.CertificateValidation.CertificateValidator);
System\IdentityModel\Metadata\MetadataSerializer.cs (1)
608
public
X509CertificateValidator
CertificateValidator
System\IdentityModel\Selectors\X509CertificateValidator.cs (17)
20
static
X509CertificateValidator
peerTrust;
21
static
X509CertificateValidator
chainTrust;
22
static
X509CertificateValidator
ntAuthChainTrust;
23
static
X509CertificateValidator
peerOrChainTrust;
24
static
X509CertificateValidator
none;
26
public static
X509CertificateValidator
None
36
public static
X509CertificateValidator
PeerTrust
46
public static
X509CertificateValidator
ChainTrust
56
internal static
X509CertificateValidator
NTAuthChainTrust
66
public static
X509CertificateValidator
PeerOrChainTrust
76
public static
X509CertificateValidator
CreateChainTrustValidator(bool useMachineContext, X509ChainPolicy chainPolicy)
83
public static
X509CertificateValidator
CreatePeerOrChainTrustValidator(bool useMachineContext, X509ChainPolicy chainPolicy)
242
X509CertificateValidator
chain;
247
this.chain =
X509CertificateValidator
.ChainTrust;
248
this.peer = (PeerTrustValidator)
X509CertificateValidator
.PeerTrust;
253
this.chain =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
254
this.peer = (PeerTrustValidator)
X509CertificateValidator
.PeerTrust;
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (7)
26
X509CertificateValidator
validator;
32
: this(
X509CertificateValidator
.ChainTrust)
36
public X509SecurityTokenAuthenticator(
X509CertificateValidator
validator)
41
public X509SecurityTokenAuthenticator(
X509CertificateValidator
validator, bool mapToWindows)
46
public X509SecurityTokenAuthenticator(
X509CertificateValidator
validator, bool mapToWindows, bool includeWindowsGroups)
51
internal X509SecurityTokenAuthenticator(
X509CertificateValidator
validator, bool mapToWindows, bool includeWindowsGroups, bool cloneHandle)
91
X509CertificateValidator
.NTAuthChainTrust.Validate(x509Token.Certificate);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
133
/// Gets or sets the <see cref="
X509CertificateValidator
"/> that is used by the current instance to validate
136
public
X509CertificateValidator
CertificateValidator
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
738
public
X509CertificateValidator
CertificateValidator
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (3)
36
X509CertificateValidator
_certificateValidator;
211
_certificateValidator = CustomTypeElement.Resolve<
X509CertificateValidator
>(new CustomTypeElement(customValidatorType));
222
public
X509CertificateValidator
CertificateValidator
System\IdentityModel\Tokens\SecurityTokenHandlerConfiguration.cs (3)
78
public static readonly
X509CertificateValidator
DefaultCertificateValidator = X509Util.CreateCertificateValidator(DefaultCertificateValidationMode, DefaultRevocationMode, DefaultTrustedStoreLocation);
82
private
X509CertificateValidator
certificateValidator = DefaultCertificateValidator;
123
public
X509CertificateValidator
CertificateValidator
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (8)
38
private
X509CertificateValidator
certificateValidator;
45
/// Uses <see cref="
X509CertificateValidator
.PeerOrChainTrust"/> as the default certificate validator.
57
public X509SecurityTokenHandler(
X509CertificateValidator
certificateValidator)
63
/// Creates an instance of <see cref="X509SecurityTokenHandler"/>. Uses <see cref="
X509CertificateValidator
.PeerOrChainTrust"/>
78
public X509SecurityTokenHandler(bool mapToWindows,
X509CertificateValidator
certificateValidator)
225
certificateValidator = CustomTypeElement.Resolve<
X509CertificateValidator
>(new CustomTypeElement(customValidatorType));
246
public
X509CertificateValidator
CertificateValidator
493
/// <exception cref="SecurityTokenValidationException">The current <see cref="
X509CertificateValidator
"/> was unable to validate the certificate in the Token.</exception>
System\IdentityModel\X509CertificateValidatorEx.cs (5)
23
private
X509CertificateValidator
validator;
36
this.validator =
X509CertificateValidator
.None;
42
this.validator =
X509CertificateValidator
.PeerTrust;
52
this.validator =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, this.chainPolicy);
62
this.validator =
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, this.chainPolicy);
System\IdentityModel\X509Util.cs (1)
174
internal static
X509CertificateValidator
CreateCertificateValidator(
System.ServiceModel (75)
System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
26
X509CertificateValidator
sslCertificateValidator;
System\ServiceModel\Channels\HttpsChannelListener.cs (1)
67
this.certificateAuthenticator = new X509SecurityTokenAuthenticator(
X509CertificateValidator
.None,
System\ServiceModel\Channels\PeerSecurityHelpers.cs (4)
244
X509CertificateValidator
validator;
245
public PeerX509TokenProvider(
X509CertificateValidator
validator, X509Certificate2 credential)
265
X509CertificateValidator
certificateValidator;
267
public PeerCertificateClientCredentials(X509Certificate2 selfCertificate,
X509CertificateValidator
validator)
System\ServiceModel\Channels\PeerSecurityManager.cs (8)
206
X509CertificateValidator
validator;
269
X509CertificateValidator
connectionValidator = null;
270
X509CertificateValidator
messageValidator = null;
304
connectionValidator =
X509CertificateValidator
.None;
948
X509CertificateValidator
validator;
1001
return new X509SecurityTokenAuthenticator(
X509CertificateValidator
.None);
1019
X509CertificateValidator
validator = null;
1028
validator =
X509CertificateValidator
.None;
System\ServiceModel\Configuration\IssuedTokenServiceElement.cs (3)
162
if (!typeof(
X509CertificateValidator
).IsAssignableFrom(type))
165
SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(
X509CertificateValidator
).ToString())));
167
issuedToken.CustomCertificateValidator = (
X509CertificateValidator
)Activator.CreateInstance(type);
System\ServiceModel\Configuration\X509ClientCertificateAuthenticationElement.cs (3)
109
if (!typeof(
X509CertificateValidator
).IsAssignableFrom(validatorType))
112
SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(
X509CertificateValidator
).ToString())));
114
cert.CustomCertificateValidator = (
X509CertificateValidator
)Activator.CreateInstance(validatorType);
System\ServiceModel\Configuration\X509PeerCertificateAuthenticationElement.cs (3)
91
if (!typeof(
X509CertificateValidator
).IsAssignableFrom(validatorType))
94
SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(
X509CertificateValidator
).ToString())));
96
cert.CustomCertificateValidator = (
X509CertificateValidator
)Activator.CreateInstance(validatorType);
System\ServiceModel\Configuration\X509ServiceCertificateAuthenticationElement.cs (3)
91
if (!typeof(
X509CertificateValidator
).IsAssignableFrom(validatorType))
94
SR.GetString(SR.ConfigInvalidCertificateValidatorType, this.CustomCertificateValidatorType, typeof(
X509CertificateValidator
).ToString())));
96
cert.CustomCertificateValidator = (
X509CertificateValidator
)Activator.CreateInstance(validatorType);
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
732
result = new X509SecurityTokenAuthenticator(
X509CertificateValidator
.None);
System\ServiceModel\Security\IssuedTokenServiceCredential.cs (7)
28
X509CertificateValidator
customCertificateValidator = null;
142
public
X509CertificateValidator
CustomCertificateValidator
168
internal
X509CertificateValidator
GetCertificateValidator()
172
return
X509CertificateValidator
.None;
176
return
X509CertificateValidator
.PeerTrust;
193
return
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
197
return
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, chainPolicy);
System\ServiceModel\Security\PeerCredential.cs (1)
134
System.IdentityModel.Selectors.
X509CertificateValidator
first = null, second = null;
System\ServiceModel\Security\SecurityUtils.cs (1)
341
nonValidatingX509Authenticator = new X509SecurityTokenAuthenticator(
X509CertificateValidator
.None);
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (2)
266
X509CertificateValidator
validator = parent.IssuedTokenAuthentication.GetCertificateValidator();
334
return new X509SecurityTokenAuthenticator(
X509CertificateValidator
.None, false);
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (1)
31
: base(
X509CertificateValidator
.None, GetMapToWindowsSetting( wrappedX509SecurityTokenHandler ), true )
System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (12)
20
static
X509CertificateValidator
defaultCertificateValidator;
25
X509CertificateValidator
customCertificateValidator = null;
45
internal static
X509CertificateValidator
DefaultCertificateValidator
61
defaultCertificateValidator =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
109
public
X509CertificateValidator
CustomCertificateValidator
148
internal
X509CertificateValidator
GetCertificateValidator()
152
return
X509CertificateValidator
.None;
156
return
X509CertificateValidator
.PeerTrust;
185
return
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
188
return
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, chainPolicy);
304
X509CertificateValidator
peer;
309
this.peer =
X509CertificateValidator
.PeerTrust;
System\ServiceModel\Security\X509PeerCertificateAuthentication.cs (12)
17
static
X509CertificateValidator
defaultCertificateValidator;
22
X509CertificateValidator
customCertificateValidator = null;
38
internal static
X509CertificateValidator
DefaultCertificateValidator
47
defaultCertificateValidator =
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, chainPolicy);
93
public
X509CertificateValidator
CustomCertificateValidator
106
internal bool TryGetCertificateValidator(out
X509CertificateValidator
validator)
111
validator =
X509CertificateValidator
.None;
115
validator =
X509CertificateValidator
.PeerTrust;
128
validator =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
132
validator =
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, chainPolicy);
138
internal
X509CertificateValidator
GetCertificateValidator()
140
X509CertificateValidator
result;
System\ServiceModel\Security\X509ServiceCertificateAuthentication.cs (12)
18
static
X509CertificateValidator
defaultCertificateValidator;
25
X509CertificateValidator
customCertificateValidator = null;
41
internal static
X509CertificateValidator
DefaultCertificateValidator
56
defaultCertificateValidator =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
102
public
X509CertificateValidator
CustomCertificateValidator
115
internal bool TryGetCertificateValidator(out
X509CertificateValidator
validator)
120
validator =
X509CertificateValidator
.None;
124
validator =
X509CertificateValidator
.PeerTrust;
143
validator =
X509CertificateValidator
.CreateChainTrustValidator(useMachineContext, chainPolicy);
147
validator =
X509CertificateValidator
.CreatePeerOrChainTrustValidator(useMachineContext, chainPolicy);
153
internal
X509CertificateValidator
GetCertificateValidator()
155
X509CertificateValidator
result;