#include <KeyTransRecipientInfo.h>
CMS defines several type of recipient information. PKIF only currently supports the KeyTransRecipientInfo type, as implemented by this class, and the KEKRecipInfoDetails type.
TSP-enforcing: No
Definition at line 30 of file KeyTransRecipientInfo.h.
Public Types | |
enum | RecipientIdentifierChoice { ISSUERSERIAL, SKID, UNSET } |
Public Member Functions | |
CPKIFKeyTransRecipientInfo () | |
CPKIFKeyTransRecipientInfo (const CPKIFBufferPtr &ktriBuf) | |
~CPKIFKeyTransRecipientInfo () | |
RecipientIdentifierChoice | GetRecipientIdentifierChoice () const |
CPKIFIssuerAndSerialNumberPtr | GetIssuerAndSerialNumber () const |
CPKIFBufferPtr | GetSKID () const |
CPKIFAlgorithmIdentifierPtr | GetKeyEncryptionAlgorithm () const |
CPKIFBufferPtr | GetEncryptedKey () const |
CPKIFKeyTransRecipientInfo::CPKIFKeyTransRecipientInfo | ( | ) |
Interface: External
Default constructor.
Definition at line 37 of file KeyTransRecipientInfo.cpp.
CPKIFKeyTransRecipientInfo::CPKIFKeyTransRecipientInfo | ( | const CPKIFBufferPtr & | ktriBuf | ) |
Interface: External
This constructor creates an instance of CPKIFKeyTransRecipientInfo based on the parameter.
ktriBuf | [in] The objective structure to parse. |
Definition at line 49 of file KeyTransRecipientInfo.cpp.
References CACASNWRAPPER_CREATE, and data.
CPKIFKeyTransRecipientInfo::~CPKIFKeyTransRecipientInfo | ( | ) |
Interface: External
This constructor creates an instance of CPKIFKeyTransRecipientInfo based on the parameter.
Definition at line 136 of file KeyTransRecipientInfo.cpp.
CPKIFKeyTransRecipientInfo::RecipientIdentifierChoice CPKIFKeyTransRecipientInfo::GetRecipientIdentifierChoice | ( | ) | const |
Interface: External
This function returns an enum indicating the type of recipient identifier present in the object. The RecipientIdentifierChoice enumeration is defined as follows:
enum RecipientIdentifierChoice { ISSUERSERIAL, SKID, UNSET };
When ISSUERSERIAL is returned by this function, subsequent calls to GetIssuerAndSerialNumber should not return NULL. When SKID is returned by this function, subsequent calls to GetSKID should not return NULL. When UNSET is returned by this function calls to either function should return NULL.
Definition at line 164 of file KeyTransRecipientInfo.cpp.
References ISSUERSERIAL, SKID, and UNSET.
CPKIFIssuerAndSerialNumberPtr CPKIFKeyTransRecipientInfo::GetIssuerAndSerialNumber | ( | ) | const |
Interface: External
This function returns the issuer distinguished name and certificate serial number specified by the recipient identifier contained by the KeyTransRecipientInfo object.
Definition at line 181 of file KeyTransRecipientInfo.cpp.
CPKIFBufferPtr CPKIFKeyTransRecipientInfo::GetSKID | ( | ) | const |
Interface: External
This function returns the subject key identifier specified by the recipient identifier contained by the KeyTransRecipientInfo object.
Definition at line 193 of file KeyTransRecipientInfo.cpp.
CPKIFAlgorithmIdentifierPtr CPKIFKeyTransRecipientInfo::GetKeyEncryptionAlgorithm | ( | ) | const |
Interface: External
This function returns the algorithm identifier that indicates the key encryption algorithm.
Definition at line 204 of file KeyTransRecipientInfo.cpp.
CPKIFBufferPtr CPKIFKeyTransRecipientInfo::GetEncryptedKey | ( | ) | const |
Interface: External
This function returns the encrypted key.
Definition at line 215 of file KeyTransRecipientInfo.cpp.