Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

XSECCryptoX509 Class Reference
[Cryptographic Abstraction Layer]

#include <XSECCryptoX509.hpp>

Inheritance diagram for XSECCryptoX509:

Inheritance graph
[legend]
List of all members.

Detailed Description

Interface class for X509 certificates.

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

Strictly speaking, this class is not required. However it is used by XSECKeyInfoResolverDefault to extract a key from a certificate in cases where the caller is not worried about the trust level of the certificate.


Public Methods

Constructors and Destructors
 XSECCryptoX509 ()
virtual ~XSECCryptoX509 ()
Key Interface methods
virtual XSECCryptoKey::KeyType getPublicKeyType ()=0
 Return the type of the key stored in the certificate.

virtual XSECCryptoKeyclonePublicKey ()=0
 Get a copy of the public key.

Load and Get the certificate
virtual void loadX509Base64Bin (const char *buf, unsigned int len)=0
 Load a certificate into the object.

virtual safeBuffergetDEREncodingSB (void)=0
 Get a Base64 DER encoded copy of the certificate.


Constructor & Destructor Documentation

XSECCryptoX509::XSECCryptoX509   [inline]
 

virtual XSECCryptoX509::~XSECCryptoX509   [inline, virtual]
 


Member Function Documentation

virtual XSECCryptoKey* XSECCryptoX509::clonePublicKey   [pure virtual]
 

Get a copy of the public key.

The implementation should extract the key from the certificate, create an instance of the appropriate key type, and return it.

Implemented in OpenSSLCryptoX509.

virtual safeBuffer& XSECCryptoX509::getDEREncodingSB void    [pure virtual]
 

Get a Base64 DER encoded copy of the certificate.

Returns:
A safeBuffer containing the DER encoded certificate

Implemented in OpenSSLCryptoX509.

virtual XSECCryptoKey::KeyType XSECCryptoX509::getPublicKeyType   [pure virtual]
 

Return the type of the key stored in the certificate.

The implementation is expected to extract the key from the certificate and determine the type.

Implemented in OpenSSLCryptoX509.

virtual void XSECCryptoX509::loadX509Base64Bin const char *    buf,
unsigned int    len
[pure 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.

Implemented in OpenSSLCryptoX509.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 20:59:30 2003 for XML-Security-C by doxygen1.2.18