Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class 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 (and is completely Optional. 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 Member Functions

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.
virtual const XMLCh * getProviderName ()=0
 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)=0
 Load a certificate into the object.
void loadX509PEM (const char *buf, unsigned int len=0)
 Load a PEM encoded 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, and WinCAPICryptoX509.

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, and WinCAPICryptoX509.

virtual const XMLCh* XSECCryptoX509::getProviderName  )  [pure virtual]
 

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

Implemented in OpenSSLCryptoX509, and WinCAPICryptoX509.

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, and WinCAPICryptoX509.

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, and WinCAPICryptoX509.

void XSECCryptoX509::loadX509PEM const char *  buf,
unsigned int  len = 0
 

Load a PEM encoded certificate into the object.

Take a PEM encoded certificate and load.

Parameters:
buf A buffer containing the PEM encoded certificate
len The number of bytes of data in the certificate. (0 if the string is null terminated.)


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