ICryptAttribute interface

The ICryptAttribute interface represents a cryptographic attribute in a certificate request. A collection of these attributes is contained in the CertificateRequestInfo structure of a PKCS #10 request as shown by the following example syntax.


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

A single ICryptAttribute object corresponds to the attributes collection in the request. The ICryptAttribute object in turn contains a collection of IX509Attribute objects. Each attribute in this collection contains an object identifier and one or more values. Each value is an encoded Abstract Syntax Notation One (ASN.1) structure. Zero or more of the following objects can be included in the collection:

Members

The ICryptAttribute interface inherits from the IDispatch interface. ICryptAttribute also has these types of members:

Methods

The ICryptAttribute interface has these methods.

MethodDescription
InitializeFromObjectId

Initializes a cryptographic attribute by using an object identifier.

InitializeFromValues

Initializes a cryptographic attribute by using an IX509Attributes object.

 

Properties

The ICryptAttribute interface has these properties.

PropertyDescription

ObjectId

Retrieves the object identifier for the attribute.

Values

Retrieves an IX509Attributes object that contains a collection of attributes.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

ICryptAttribute
ICryptAttributes
IX509Attribute
IX509Attributes

 

 

Community Additions

ADD
Show:
© 2014 Microsoft