ICryptAttribute 介面 (certenroll.h)

ICryptAttribute 介面代表憑證要求中的密碼編譯屬性。 這些屬性的集合包含在 PKCS #10 要求的 CertificateRequestInfo 結構中,如下列範例語法所示。


CertificationRequestInfo ::= SEQUENCE 
{
   version                 CertificationRequestInfoVersion,
   subject                 ANY, 
   subjectPublicKeyInfo    SubjectPublicKeyInfo,
   attributes              [0] IMPLICIT Attributes
}

Attributes ::= SET OF Attribute

Attribute ::= SEQUENCE 
{
   type       EncodedObjectID,
   values     AttributeSetValue
}

AttributeSetValue ::= SET OF ANY

單一 ICryptAttribute 對象會對應至要求中的屬性集合。 ICryptAttribute 對象接著會包含IX509Attribute 物件的集合。 這個集合中的每個屬性都包含 物件標識碼 和一或多個值。 每個值都是編碼的 抽象語法表示法, 一個 (ASN.1) 結構。 集合中可以包含下列零個或多個物件:

繼承

ICryptAttribute 介面繼承自 IDispatch 介面。 ICryptAttribute 也有下列類型的成員:

方法

ICryptAttribute 介面具有這些方法。

 
ICryptAttribute::get_ObjectId

擷取屬性 (OID) 的物件標識碼。 (ICryptAttribute.get_ObjectId)
ICryptAttribute::get_Values

擷取包含屬性集合的IX509Attributes物件。
ICryptAttribute::InitializeFromObjectId

使用物件識別元初始化密碼編譯屬性。
ICryptAttribute::InitializeFromValues

使用IX509Attributes物件初始化密碼編譯屬性。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 certenroll.h

另請參閱

ICryptAttribute

ICryptAttributes

IDispatch

IX509Attribute

IX509Attributes