Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

WinCAPICryptoX509 Class Reference
[Windows Crypto API Interface]

#include <WinCAPICryptoX509.hpp>

Inheritance diagram for WinCAPICryptoX509:

Inheritance graph
[legend]
Collaboration diagram for WinCAPICryptoX509:

Collaboration graph
[legend]
List of all members.

Detailed Description

WinCAPI implementation class for interface for X509 certificates.

The library uses classes derived from this to process X509 Certificates.


Public Member Functions

Constructors and Destructors
 WinCAPICryptoX509 (HCRYPTPROV provRSA, HCRYPTPROV provDSS)
 Constructor for X509 objects.
 WinCAPICryptoX509 (PCCERT_CONTEXT pCertContext, HCRYPTPROV provRSA, HCRYPTPROV provDSS)
 Constructor for X509 objects.
virtual ~WinCAPICryptoX509 ()
Key Interface methods
virtual XSECCryptoKey::KeyType getPublicKeyType ()
 Return the type of the key stored in the certificate.
virtual XSECCryptoKeyclonePublicKey ()
 Get a copy of the public key.
virtual const XMLCh * getProviderName ()
 Returns a string that identifies the crypto owner of this library.
Load and Get the certificate
virtual void loadX509Base64Bin (const char *buf, unsigned int len)
 Load a certificate into the object.
virtual safeBuffergetDEREncodingSB (void)
 Get a Base64 DER encoded copy of the certificate.


Constructor & Destructor Documentation

WinCAPICryptoX509::WinCAPICryptoX509 HCRYPTPROV  provRSA,
HCRYPTPROV  provDSS
 

Constructor for X509 objects.

The windows constructor requires RSA or DSS crypto providers, depending on the key type within the cert.

Parameters:
provRSA A handle to the PROV_RSA_FULL type provider that the interface should use when importing keys and manipulating certs
provDSS A handle to the PROV_DSS type provider that the interface should use when importing keys and manipulating certs

WinCAPICryptoX509::WinCAPICryptoX509 PCCERT_CONTEXT  pCertContext,
HCRYPTPROV  provRSA,
HCRYPTPROV  provDSS
 

Constructor for X509 objects.

Parameters:
pCertContext A certificate handle
provRSA A handle to the PROV_RSA_FULL type provider that the interface should use when importing keys and manipulating certs
provDSS A handle to the PROV_DSS type provider that the interface should use when importing keys and manipulating certs

virtual WinCAPICryptoX509::~WinCAPICryptoX509  )  [virtual]
 


Member Function Documentation

virtual XSECCryptoKey* WinCAPICryptoX509::clonePublicKey  )  [virtual]
 

Get a copy of the public key.

Extracts the public key from the certificate and returns the appropriate WinCAPICryrptoKey (DSA or RSA) object

Implements XSECCryptoX509.

virtual safeBuffer& WinCAPICryptoX509::getDEREncodingSB void   )  [inline, virtual]
 

Get a Base64 DER encoded copy of the certificate.

Returns:
A safeBuffer containing the DER encoded certificate

Implements XSECCryptoX509.

virtual const XMLCh* WinCAPICryptoX509::getProviderName  )  [virtual]
 

Returns a string that identifies the crypto owner of this library.

Implements XSECCryptoX509.

virtual XSECCryptoKey::KeyType WinCAPICryptoX509::getPublicKeyType  )  [virtual]
 

Return the type of the key stored in the certificate.

Will extract the key from the certificate to return the appropriate type

Implements XSECCryptoX509.

virtual void WinCAPICryptoX509::loadX509Base64Bin const char *  buf,
unsigned int  len
[virtual]
 

Load a certificate into the object.

Take a base64 DER encoded certificate and load.

Parameters:
buf A buffer containing the Base64 encoded certificate
len The number of bytes of data in the certificate.

Implements XSECCryptoX509.


The documentation for this class was generated from the following file:
Generated on Sun Jul 3 17:43:52 2005 for XML-Security-C by  doxygen 1.4.2