Interface ICryptAttribute (certenroll.h)

L’interface ICryptAttribute représente un attribut de chiffrement dans une demande de certificat. Une collection de ces attributs est contenue dans la structure CertificateRequestInfo d’une requête PKCS #10, comme le montre l’exemple de syntaxe suivant.


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

Un seul objet ICryptAttribute correspond à la collection d’attributs dans la requête. L’objet ICryptAttribute contient à son tour une collection d’objets IX509Attribute. Chaque attribut de cette collection contient un identificateur d’objet et une ou plusieurs valeurs. Chaque valeur est une structure ASN.1 ( Abstract Syntax Notation One ) encodée. Zéro ou plusieurs des objets suivants peuvent être inclus dans la collection :

Héritage

L’interface ICryptAttribute hérite de l’interface IDispatch. ICryptAttribute a également les types de membres suivants :

Méthodes

L’interface ICryptAttribute a ces méthodes.

 
ICryptAttribute ::get_ObjectId

Récupère l’identificateur d’objet (OID) de l’attribut . (ICryptAttribute.get_ObjectId)
ICryptAttribute ::get_Values

Récupère un objet IX509Attributes qui contient une collection d’attributs.
ICryptAttribute ::InitializeFromObjectId

Initialise un attribut de chiffrement à l’aide d’un identificateur d’objet.
ICryptAttribute ::InitializeFromValues

Initialise un attribut de chiffrement à l’aide d’un objet IX509Attributes.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau uniquement]
Plateforme cible Windows
En-tête certenroll.h

Voir aussi

ICryptAttribute

ICryptAttributes

IDispatch

IX509Attribute

IX509Attributes