System.Security.Cryptography.Pkcs Contains a type and a collection of values associated with that type. Initializes a new instance of the class using an attribute represented by the specified object. The attribute to store in this object. Initializes a new instance of the class using an attribute represented by the specified object and the set of values associated with that attribute represented by the specified collection. The attribute to store in this object. The set of values associated with the attribute represented by the oid parameter. The collection contains duplicate items. Gets the object that specifies the object identifier for the attribute. The object identifier for the attribute. Gets the collection that contains the set of values that are associated with the attribute. The set of values that is associated with the attribute. Contains a set of objects. Initializes a new instance of the class. Initializes a new instance of the class, adding a specified to the collection. A object that is added to the collection. Adds the specified object to the collection. The object to add to the collection. true if the method returns the zero-based index of the added item; otherwise, false. asnEncodedData is null. A cryptographic operation could not be completed. Adds the specified object to the collection. The object to add to the collection. true if the method returns the zero-based index of the added item; otherwise, false. asnEncodedData is null. A cryptographic operation could not be completed. The specified item already exists in the collection. Copies the collection to an array of objects. An array of objects that the collection is copied to. The zero-based index in array to which the collection is to be copied. One of the arguments provided to a method was not valid. null was passed to a method that does not accept it as a valid argument. The value of an argument was outside the allowable range of values as defined by the called method. Gets the number of items in the collection. The number of items in the collection. Gets a object for the collection. true if the method returns a object that can be used to enumerate the collection; otherwise, false. Gets the object at the specified index in the collection. An value that represents the zero-based index of the object to retrieve. The object at the specified index. Removes the specified object from the collection. The object to remove from the collection. attribute is null. Copies the elements of this collection to an array, starting at a particular index. The one-dimensional array that is the destination of the elements copied from this . The array must have zero-based indexing. The zero-based index in array at which copying begins. Returns an enumerator that iterates through the collection. An object that can be used to iterate through the collection. Provides enumeration functionality for the collection. This class cannot be inherited. Gets the current object from the collection. A object that represents the current cryptographic attribute in the collection. Advances the enumeration to the next object in the collection. true if the enumeration successfully moved to the next object; false if the enumerator is at the end of the enumeration. Resets the enumeration to the first object in the collection. Gets the current object from the collection. A object that represents the current cryptographic attribute in the collection. The class defines the algorithm used for a cryptographic operation. The constructor creates an instance of the class by using a set of default parameters. A cryptographic operation could not be completed. The constructor creates an instance of the class with the specified algorithm identifier. An object identifier for the algorithm. A cryptographic operation could not be completed. The constructor creates an instance of the class with the specified algorithm identifier and key length. An object identifier for the algorithm. The length, in bits, of the key. A cryptographic operation could not be completed. The property sets or retrieves the key length, in bits. This property is not used for algorithms that use a fixed key length. An int value that represents the key length, in bits. The property sets or retrieves the object that specifies the object identifier for the algorithm. An object that represents the algorithm. The class defines the recipient of a CMS/PKCS #7 message. The constructor constructs an instance of the class by using the specified recipient certificate. An object that represents the recipient certificate. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. The constructor constructs an instance of the class by using the specified recipient identifier type and recipient certificate. A member of the enumeration that specifies the type of the identifier of the recipient. An object that represents the recipient certificate. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. The property retrieves the certificate associated with the recipient. An object that holds the certificate associated with the recipient. The property retrieves the type of the identifier of the recipient. A member of the enumeration that specifies the type of the identifier of the recipient. The class represents a set of objects. implements the interface. The constructor creates an instance of the class. The constructor creates an instance of the class and adds the specified recipient. An instance of the class that represents the specified CMS/PKCS #7 recipient. The constructor creates an instance of the class and adds recipients based on the specified subject identifier and set of certificates that identify the recipients. A member of the enumeration that specifies the type of subject identifier. An collection that contains the certificates that identify the recipients. The method adds a recipient to the collection. A object that represents the recipient to add to the collection. If the method succeeds, the method returns an value that represents the zero-based position where the recipient is to be inserted. If the method fails, it throws an exception. recipient is null. The method copies the collection to an array. An object to which the collection is to be copied. The zero-based index in array where the collection is copied. array is not large enough to hold the specified elements. -or- array does not contain the proper number of dimensions. array is null. index is outside the range of elements in array. The method copies the collection to a array. An array of objects where the collection is to be copied. The zero-based index for the array of objects in array to which the collection is copied. array is not large enough to hold the specified elements. -or- array does not contain the proper number of dimensions. array is null. index is outside the range of elements in array. The property retrieves the number of items in the collection. An value that represents the number of items in the collection. The method returns a object for the collection. A object that can be used to enumerate the collection. The property retrieves the object at the specified index in the collection. An value that represents the index in the collection. The index is zero based. A object at the specified index. The value of an argument was outside the allowable range of values as defined by the called method. The method removes a recipient from the collection. A object that represents the recipient to remove from the collection. recipient is null. The method returns a object for the collection. A object that can be used to enumerate the collection. The class provides enumeration functionality for the collection. implements the interface. The property retrieves the current object from the collection. A object that represents the current recipient in the collection. The method advances the enumeration to the next object in the collection. true if the enumeration successfully moved to the next object; false if the enumeration moved past the last item in the enumeration. The method resets the enumeration to the first object in the collection. The property retrieves the current object from the collection. A object that represents the current recipient in the collection. The class represents the CMS/PKCS #7 ContentInfo data structure as defined in the CMS/PKCS #7 standards document. This data structure is the basis for all CMS/PKCS #7 messages. The constructor creates an instance of the class by using an array of byte values as the data and a default object identifier (OID) that represents the content type. An array of byte values that represents the data from which to create the object. A null reference was passed to a method that does not accept it as a valid argument. The constructor creates an instance of the class by using the specified content type and an array of byte values as the data. An object that contains an object identifier (OID) that specifies the content type of the content. This can be data, digestedData, encryptedData, envelopedData, hashedData, signedAndEnvelopedData, or signedData. For more information, see Remarks. An array of byte values that represents the data from which to create the object. A null reference was passed to a method that does not accept it as a valid argument. The property retrieves the content of the CMS/PKCS #7 message. An array of byte values that represents the content data. The property retrieves the object that contains the object identifier (OID) of the content type of the inner content of the CMS/PKCS #7 message. An object that contains the OID value that represents the content type. The static method retrieves the outer content type of the encoded message represented by an array of byte values. An array of byte values that represents the encoded message from which to retrieve the outer content type. If the method succeeds, the method returns an object that contains the outer content type of the specified encoded message. If the method fails, it throws an exception. A null reference was passed to a method that does not accept it as a valid argument. An error occurred during a cryptographic operation. The class represents a CMS/PKCS #7 structure for enveloped data. The constructor creates an instance of the class. A null reference was passed to a method that does not accept it as a valid argument. The constructor creates an instance of the class by using the specified content information as the inner content type. An instance of the class that represents the content and its type. A null reference was passed to a method that does not accept it as a valid argument. The constructor creates an instance of the class by using the specified content information and encryption algorithm. The specified content information is to be used as the inner content type. A object that represents the content and its type. An object that specifies the encryption algorithm. A null reference was passed to a method that does not accept it as a valid argument. The property retrieves the set of certificates associated with the enveloped CMS/PKCS #7 message. An collection that represents the X.509 certificates used with the enveloped CMS/PKCS #7 message. If no certificates exist, the property value is an empty collection. The property retrieves the identifier of the algorithm used to encrypt the content. An object that represents the algorithm identifier. The property retrieves the inner content information for the enveloped CMS/PKCS #7 message. A object that represents the inner content information from the enveloped CMS/PKCS #7 message. The method decodes the specified enveloped CMS/PKCS #7 message and resets all member variables in the object. An array of byte values that represent the information to be decoded. A null reference was passed to a method that does not accept it as a valid argument. The method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information and by using the specified certificate collection. The method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption. A object that represents the recipient information to use for the decryption. An collection that represents additional certificates to use for the decryption. The method searches this certificate collection and the My certificate store for the proper certificate to use for the decryption. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. A method call was invalid for the object's current state. The method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the specified certificate collection. The method searches the specified certificate collection and the My certificate store for the proper certificate to use for the decryption. An collection that represents additional certificates to use for the decryption. The method searches this certificate collection and the My certificate store for the proper certificate to use for the decryption. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. A method call was invalid for the object's current state. The method decrypts the contents of the decoded enveloped CMS/PKCS #7 message. The method searches the current user and computer My stores for the appropriate certificate and private key. A cryptographic operation could not be completed. A method call was invalid for the object's current state. The method decrypts the contents of the decoded enveloped CMS/PKCS #7 message by using the private key associated with the certificate identified by the specified recipient information. A object that represents the recipient information that identifies the certificate associated with the private key to use for the decryption. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. A method call was invalid for the object's current state. The method encodes the contents of the enveloped CMS/PKCS #7 message and returns it as an array of byte values. Encryption must be done before encoding. If the method succeeds, the method returns an array of byte values that represent the encoded information. If the method fails, it throws an exception. A method call was invalid for the object's current state. The method encrypts the contents of the CMS/PKCS #7 message by using the specified recipient information. A object that represents the recipient information. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. The method encrypts the contents of the CMS/PKCS #7 message by using the information for the specified list of recipients. The message is encrypted by using a message encryption key with a symmetric encryption algorithm such as triple DES. The message encryption key is then encrypted with the public key of each recipient. A collection that represents the information for the list of recipients. A null reference was passed to a method that does not accept it as a valid argument. A cryptographic operation could not be completed. The property retrieves the recipient information associated with the enveloped CMS/PKCS #7 message. A collection that represents the recipient information. If no recipients exist, the property value is an empty collection. The property retrieves the unprotected (unencrypted) attributes associated with the enveloped CMS/PKCS #7 message. Unprotected attributes are not encrypted, and so do not have data confidentiality within an object. A collection that represents the unprotected attributes. If no unprotected attributes exist, the property value is an empty collection. The property retrieves the version of the enveloped CMS/PKCS #7 message. An int value that represents the version of the enveloped CMS/PKCS #7 message. The class defines key agreement recipient information. Key agreement algorithms typically use the Diffie-Hellman key agreement algorithm, in which the two parties that establish a shared cryptographic key both take part in its generation and, by definition, agree on that key. This is in contrast to key transport algorithms, in which one party generates the key unilaterally and sends, or transports it, to the other party. The property retrieves the date and time of the start of the key agreement protocol by the originator. The date and time of the start of the key agreement protocol by the originator. The recipient identifier type is not a subject key identifier. The property retrieves the encrypted recipient keying material. An array of byte values that contain the encrypted recipient keying material. The property retrieves the algorithm used to perform the key agreement. The value of the algorithm used to perform the key agreement. The property retrieves information about the originator of the key agreement for key agreement algorithms that warrant it. An object that contains information about the originator of the key agreement. The property retrieves attributes of the keying material. The attributes of the keying material. The recipient identifier type is not a subject key identifier. The property retrieves the identifier of the recipient. The identifier of the recipient. The property retrieves the version of the key agreement recipient. This is automatically set for objects in this class, and the value implies that the recipient is taking part in a key agreement algorithm. The version of the object. The class defines key transport recipient information. Key transport algorithms typically use the RSA algorithm, in which an originator establishes a shared cryptographic key with a recipient by generating that key and then transporting it to the recipient. This is in contrast to key agreement algorithms, in which the two parties that will be using a cryptographic key both take part in its generation, thereby mutually agreeing to that key. The property retrieves the encrypted key for this key transport recipient. An array of byte values that represents the encrypted key. The property retrieves the key encryption algorithm used to encrypt the content encryption key. An object that stores the key encryption algorithm identifier. The property retrieves the subject identifier associated with the encrypted content. A object that stores the identifier of the recipient taking part in the key transport. The property retrieves the version of the key transport recipient. The version of the key transport recipient is automatically set for objects in this class, and the value implies that the recipient is taking part in a key transport algorithm. An int value that represents the version of the key transport object. Represents an attribute used for CMS/PKCS #7 and PKCS #9 operations. Initializes a new instance of the class. Initializes a new instance of the class using a specified object as its attribute type and value. An object that contains the PKCS #9 attribute type and value to use. The length of the Value member of the Oid member of asnEncodedData is zero. The Oid member of asnEncodedData is null. -or- The Value member of the Oid member of asnEncodedData is null. Initializes a new instance of the class using a specified object as the attribute type and a specified ASN.1 encoded data as the attribute value. An object that represents the PKCS #9 attribute type. An array of byte values that represents the PKCS #9 attribute value. Initializes a new instance of the class using a specified string representation of an object identifier (OID) as the attribute type and a specified ASN.1 encoded data as the attribute value. The string representation of an OID that represents the PKCS #9 attribute type. An array of byte values that contains the PKCS #9 attribute value. Copies a PKCS #9 attribute type and value for this from the specified object. An object that contains the PKCS #9 attribute type and value to use. asnEncodeData does not represent a compatible attribute type. asnEncodedData is null. Gets an object that represents the type of attribute associated with this object. An object that represents the type of attribute associated with this object. The class defines the type of the content of a CMS/PKCS #7 message. The constructor creates an instance of the class. The property gets an object that contains the content type. An object that contains the content type. Copies information from an object. The object from which to copy information. The class defines the description of the content of a CMS/PKCS #7 message. The constructor creates an instance of the class. The constructor creates an instance of the class by using the specified array of byte values as the encoded description of the content of a CMS/PKCS #7 message. An array of byte values that specifies the encoded description of the CMS/PKCS #7 message. The constructor creates an instance of the class by using the specified description of the content of a CMS/PKCS #7 message. An instance of the class that specifies the description for the CMS/PKCS #7 message. Copies information from an object. The object from which to copy information. The property retrieves the document description. A object that contains the document description. The class defines the name of a CMS/PKCS #7 message. The constructor creates an instance of the class. The constructor creates an instance of the class by using the specified array of byte values as the encoded name of the content of a CMS/PKCS #7 message. An array of byte values that specifies the encoded name of the CMS/PKCS #7 message. The constructor creates an instance of the class by using the specified name for the CMS/PKCS #7 message. A object that specifies the name for the CMS/PKCS #7 message. Copies information from an object. The object from which to copy information. The property retrieves the document name. A object that contains the document name. The class defines the message digest of a CMS/PKCS #7 message. The constructor creates an instance of the class. Copies information from an object. The object from which to copy information. The property retrieves the message digest. An array of byte values that contains the message digest. The class defines the signing date and time of a signature. A object can be used as an authenticated attribute of a object when an authenticated date and time are to accompany a digital signature. The constructor creates an instance of the class. The constructor creates an instance of the class by using the specified array of byte values as the encoded signing date and time of the content of a CMS/PKCS #7 message. An array of byte values that specifies the encoded signing date and time of the CMS/PKCS #7 message. The constructor creates an instance of the class by using the specified signing date and time. A structure that represents the signing date and time of the signature. Copies information from a object. The object from which to copy information. The property retrieves a structure that represents the date and time that the message was signed. A structure that contains the date and time the document was signed. The class represents information associated with a public key. The property retrieves the algorithm identifier associated with the public key. An object that represents the algorithm. The property retrieves the value of the encoded public component of the public key pair. An array of byte values that represents the encoded public component of the public key pair. The class represents information about a CMS/PKCS #7 message recipient. The class is an abstract class inherited by the and classes. The abstract property retrieves the encrypted recipient keying material. An array of byte values that contain the encrypted recipient keying material. The abstract property retrieves the algorithm used to perform the key establishment. An object that contains the value of the algorithm used to establish the key between the originator and recipient of the CMS/PKCS #7 message. The abstract property retrieves the identifier of the recipient. A object that contains the identifier of the recipient. The property retrieves the type of the recipient. The type of the recipient determines which of two major protocols is used to establish a key between the originator and the recipient of a CMS/PKCS #7 message. A value of the enumeration that defines the type of the recipient. The abstract property retrieves the version of the recipient information. Derived classes automatically set this property for their objects, and the value indicates whether it is using PKCS #7 or Cryptographic Message Syntax (CMS) to protect messages. The version also implies whether the object establishes a cryptographic key by a key agreement algorithm or a key transport algorithm. An value that represents the version of the object. The class represents a collection of objects. implements the interface. The method copies the collection to an array. An object to which the collection is to be copied. The zero-based index in array where the collection is copied. One of the arguments provided to a method was not valid. A null reference was passed to a method that does not accept it as a valid argument. The value of an argument was outside the allowable range of values as defined by the called method. The method copies the collection to a array. An array of objects where the collection is to be copied. The zero-based index in array where the collection is copied. One of the arguments provided to a method was not valid. A null reference was passed to a method that does not accept it as a valid argument. The value of an argument was outside the allowable range of values as defined by the called method. The property retrieves the number of items in the collection. An int value that represents the number of items in the collection. The method returns a object for the collection. A object that can be used to enumerate the collection. The property retrieves the object at the specified index in the collection. An int value that represents the index in the collection. The index is zero based. A object at the specified index. The value of an argument was outside the allowable range of values as defined by the called method. The method returns a object for the collection. A object that can be used to enumerate the collection. The class provides enumeration functionality for the collection. implements the interface. The property retrieves the current object from the collection. A object that represents the current recipient information structure in the collection. The method advances the enumeration to the next object in the collection. This method returns a bool that specifies whether the enumeration successfully advanced. If the enumeration successfully moved to the next object, the method returns true. If the enumeration moved past the last item in the enumeration, it returns false. The method resets the enumeration to the first object in the collection. The property retrieves the current object from the collection. A object that represents the current recipient information structure in the collection. The enumeration defines the types of recipient information. Key agreement recipient information. Key transport recipient information. The recipient information type is unknown. The class defines the type of the identifier of a subject, such as a or a . The subject can be identified by the certificate issuer and serial number or the subject key. The property retrieves the type of subject identifier. The subject can be identified by the certificate issuer and serial number or the subject key. A member of the enumeration that identifies the type of subject. The property retrieves the value of the subject identifier. Use the property to determine the type of subject identifier, and use the property to retrieve the corresponding value. An object that represents the value of the subject identifier. This can be one of the following objects as determined by the property. property Object IssuerAndSerialNumber SubjectKeyIdentifier The class defines the type of the identifier of a subject, such as a or a . The subject can be identified by the certificate issuer and serial number, the hash of the subject key, or the subject key. The property retrieves the type of subject identifier or key. The subject can be identified by the certificate issuer and serial number, the hash of the subject key, or the subject key. A member of the enumeration that specifies the type of subject identifier. The property retrieves the value of the subject identifier or key. Use the property to determine the type of subject identifier or key, and use the property to retrieve the corresponding value. An object that represents the value of the subject identifier or key. This can be one of the following objects as determined by the property. property Object IssuerAndSerialNumber SubjectKeyIdentifier PublicKeyInfo The enumeration defines how a subject is identified. The subject is identified by the certificate issuer and serial number. The subject is identified by the public key. The subject is identified by the hash of the subject key. The type is unknown. The enumeration defines the type of subject identifier. The subject is identified by the certificate issuer and serial number. The subject is identified as taking part in an integrity check operation that uses only a hashing algorithm. The subject is identified by the hash of the subject's public key. The hash algorithm used is determined by the signature algorithm suite in the subject's certificate. The type of subject identifier is unknown. Represents the <X509IssuerSerial> element of an XML digital signature. Gets or sets an X.509 certificate issuer's distinguished name. An X.509 certificate issuer's distinguished name. Gets or sets an X.509 certificate issuer's serial number. An X.509 certificate issuer's serial number.