CPKIFCAPICryptContext2 Class Reference

#include <PKIFCAPICryptContext2.h>

Inheritance diagram for CPKIFCAPICryptContext2:

Inheritance graph
[legend]
Collaboration diagram for CPKIFCAPICryptContext2:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class provides an implementation of the IPKIFCryptContext interface in terms of cryptography implemented by colleagues using Microsoft Crypto API and stored key material, i.e. CAPI-based credentials. Applications need not handle objects as CPKIFCAPICryptContext2 objects. Instead, a context object is created by invoking a CryptInit function and a pointer to an IPKIFCryptContext object is returned. This pointer is an opaque data type that is then passed to Encrypt or Decrypt to perform cryptographic operations.

The constructor for this class is declared private. Only compatible instantiations of CPKIFCAPI2 can create CPKIFCAPICryptContext2 objects.

See the Performing Symmetric Key Operations sample.

TSP-enforcing: No

Definition at line 35 of file PKIFCAPICryptContext2.h.


Public Member Functions

virtual ~CPKIFCAPICryptContext2 (void)
CPKIFCredentialPtr GetCredential ()

Friends

class CPKIFCAPI2
class CPKIFCNGCAPI

Constructor & Destructor Documentation

CPKIFCAPICryptContext2::~CPKIFCAPICryptContext2 ( void   )  [virtual]

Interface: External This function destroys instances of CPKIFCAPIRawContext

Returns:
None

Definition at line 54 of file PKIFCAPICryptContext2.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_CRYPTO_MISC.


Member Function Documentation

CPKIFCredentialPtr CPKIFCAPICryptContext2::GetCredential (  )  [virtual]

Interface: External

The purpose of this function is to get a pointer to a CPKIFCredential object containing the associated credential

Returns:
This function returns a smart pointer to a CPKIFCredential object containing the associated credential or NULL if no credential has been specified.

Implements IPKIFCryptContext.

Definition at line 81 of file PKIFCAPICryptContext2.cpp.


Friends And Related Function Documentation

friend class CPKIFCAPI2 [friend]

Definition at line 37 of file PKIFCAPICryptContext2.h.

friend class CPKIFCNGCAPI [friend]

Definition at line 38 of file PKIFCAPICryptContext2.h.


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:19:56 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6