次の方法で共有


<certificateValidator>

Specifies a custom type for certificate validation. This type is used only if the certificateValidationMode attribute of the <certificateValidation> element is set to "Custom".

<configuration>
  <system.identityModel>
    <identityConfiguration>
      <certificateValidation>
        <certificateValidator>

Syntax

<system.identityModel>  
  <identityConfiguration>  
    <certificateValidation>  
      <certificateValidator type=xs:string>  
      </certificateValidator>  
    </certificateValidation>  
  </identityConfiguration>  
</system.identityModel>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
type Specifies a custom type that derives from the X509CertificateValidator class. Set the certificateValidationMode attribute of the <certificateValidation> element to "Custom" to use this type. Optional.

Child Elements

None

Parent Elements

Element Description
<certificateValidation> Controls the settings that token handlers use to validate certificates.

Example

<certificateValidation certificateValidationMode="Custom"  
                       revocationMode="Online"  
                       trustedStoreLocation="LocalMachine">  
    <certificateValidator type="MyNamespace.CustomValidator, MyAssembly" />
</certificateValidation>