<oidMap> 元素

包含類別的 ASN.1 物件識別碼 (OID) 對應。

<configuration>
  <mscorlib>
    <cryptographySettings>
      <oidMap>

Syntax

<oidMap>
</oidMap>  

屬性和項目

下列章節說明屬性、子元素和父元素。

屬性

無。

子元素

元素 描述
<oidEntry> 將 ASN.1 OID 對應於易記名稱。

父項目

元素 Description
configuration 通用語言執行平台和 .NET Framework 應用程式所使用之每個組態檔中的根項目。
cryptographySettings 包含密碼編譯設定。
mscorlib 包含 cryptographySettings 元素。

範例

下列範例將示範如何使用 <oidMap> 元素,包含 RIPEMD-160 雜湊演算法實作的該雜湊演算法 OID 對應。

<configuration>  
   <mscorlib>  
      <cryptographySettings>  
         <cryptoNameMapping>  
            <cryptoClasses>  
               <cryptoClass   MyCrypto="MyCryptoClass, MyAssembly  
                  Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,  
                  Version=1.0.0.0"/>  
            </cryptoClasses>  
            <nameEntry name="RIPEMD-160" class="MyCrypto"/>  
         </cryptoNameMapping>  
         <oidMap>  
            <oidEntry OID="1.3.36.3.2.1"  name="MyCryptoClass"/>  
         </oidMap>  
      </cryptographySettings>  
   </mscorlib>  
</configuration>  

另請參閱